home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Tape Archive
(archive/tar).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Tape Archive (archive/tar)
| magic
| Supported |
100%
| file
| POSIX tar archive (GNU)
| default
| |
99%
| file
| POSIX tar archive (GNU), directory MIT-Scheme-7.1.3-patches/, mode 755 , uid 21521 , gid 23421 , size 0 , seconds 5347465451, user max, group schmatik
| default
| |
98%
| file
| data
| default
| |
62%
| TrID
| TAR - Tape ARchive (GNU)
| default
| |
37%
| TrID
| TAR - Tape ARchive (directory)
| default
| |
100%
| siegfried
| x-fmt/265 Tape Archive Format
| default
| |
100%
| lsar
| Tar
| default
| |
100%
| gt2
| TAR Archiv gefunden (Auflistung ist deaktiviert)
| default
| |
100%
| disktype
| GNU tar archive
| default
| |
100%
| detectItEasy
| Archive: tar
| default
| |
100%
| binwalkID
| POSIX tar archive (GNU), owner user name: "me-7.1.3-patches/"
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4d 49 54 2d 53 63 68 65 | 6d 65 2d 37 2e 31 2e 33 |MIT-Sche|me-7.1.3|
|00000010| 2d 70 61 74 63 68 65 73 | 2f 00 00 00 00 00 00 00 |-patches|/.......|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 20 20 20 37 | 35 35 20 00 20 32 31 35 |.... 7|55 . 215|
|00000070| 32 31 20 00 20 32 33 34 | 32 31 20 00 20 20 20 20 |21 . 234|21 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 35 33 34 37 34 36 35 | 0 | 5347465|
|00000090| 34 35 31 20 20 31 33 36 | 30 36 00 20 35 00 00 00 |451 136|06. 5...|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 75 73 74 61 72 20 20 | 00 6d 61 78 00 00 00 00 |.ustar |.max....|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 73 63 68 6d 61 74 69 |........|.schmati|
|00000130| 6b 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |k.......|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 4d 49 54 2d 53 63 68 65 | 6d 65 2d 37 2e 31 2e 33 |MIT-Sche|me-7.1.3|
|00000210| 2d 70 61 74 63 68 65 73 | 2f 61 64 64 65 64 2d 66 |-patches|/added-f|
|00000220| 69 6c 65 73 2f 00 00 00 | 00 00 00 00 00 00 00 00 |iles/...|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 20 20 20 37 | 35 35 20 00 20 32 31 35 |.... 7|55 . 215|
|00000270| 32 31 20 00 20 32 33 34 | 32 31 20 00 20 20 20 20 |21 . 234|21 . |
|00000280| 20 20 20 20 20 20 30 20 | 20 35 33 34 37 34 36 35 | 0 | 5347465|
|00000290| 34 34 37 20 20 31 35 37 | 35 34 00 20 35 00 00 00 |447 157|54. 5...|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 75 73 74 61 72 20 20 | 00 6d 61 78 00 00 00 00 |.ustar |.max....|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 73 63 68 6d 61 74 69 |........|.schmati|
|00000330| 6b 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |k.......|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 4d 49 54 2d 53 63 68 65 | 6d 65 2d 37 2e 31 2e 33 |MIT-Sche|me-7.1.3|
|00000410| 2d 70 61 74 63 68 65 73 | 2f 61 64 64 65 64 2d 66 |-patches|/added-f|
|00000420| 69 6c 65 73 2f 73 72 63 | 2f 00 00 00 00 00 00 00 |iles/src|/.......|
|00000430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000460| 00 00 00 00 20 20 20 37 | 35 35 20 00 20 32 31 35 |.... 7|55 . 215|
|00000470| 32 31 20 00 20 32 33 34 | 32 31 20 00 20 20 20 20 |21 . 234|21 . |
|00000480| 20 20 20 20 20 20 30 20 | 20 35 33 34 37 34 36 35 | 0 | 5347465|
|00000490| 34 35 30 20 20 31 36 35 | 33 35 00 20 35 00 00 00 |450 165|35. 5...|
|000004a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 75 73 74 61 72 20 20 | 00 6d 61 78 00 00 00 00 |.ustar |.max....|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 73 63 68 6d 61 74 69 |........|.schmati|
|00000530| 6b 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |k.......|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 4d 49 54 2d 53 63 68 65 | 6d 65 2d 37 2e 31 2e 33 |MIT-Sche|me-7.1.3|
|00000610| 2d 70 61 74 63 68 65 73 | 2f 61 64 64 65 64 2d 66 |-patches|/added-f|
|00000620| 69 6c 65 73 2f 73 72 63 | 2f 6d 69 63 72 6f 63 6f |iles/src|/microco|
|00000630| 64 65 2f 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |de/.....|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 20 20 20 37 | 35 35 20 00 20 32 31 35 |.... 7|55 . 215|
|00000670| 32 31 20 00 20 32 33 34 | 32 31 20 00 20 20 20 20 |21 . 234|21 . |
|00000680| 20 20 20 20 20 20 30 20 | 20 35 33 34 37 34 36 35 | 0 | 5347465|
|00000690| 34 34 37 20 20 32 30 35 | 30 37 00 20 35 00 00 00 |447 205|07. 5...|
|000006a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000700| 00 75 73 74 61 72 20 20 | 00 6d 61 78 00 00 00 00 |.ustar |.max....|
|00000710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000720| 00 00 00 00 00 00 00 00 | 00 73 63 68 6d 61 74 69 |........|.schmati|
|00000730| 6b 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |k.......|........|
|00000740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000800| 4d 49 54 2d 53 63 68 65 | 6d 65 2d 37 2e 31 2e 33 |MIT-Sche|me-7.1.3|
|00000810| 2d 70 61 74 63 68 65 73 | 2f 61 64 64 65 64 2d 66 |-patches|/added-f|
|00000820| 69 6c 65 73 2f 73 72 63 | 2f 6d 69 63 72 6f 63 6f |iles/src|/microco|
|00000830| 64 65 2f 73 63 68 67 72 | 61 70 68 2e 63 00 00 00 |de/schgr|aph.c...|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 32 31 35 |.... 6|44 . 215|
|00000870| 32 31 20 00 20 32 33 34 | 32 31 20 00 20 20 20 20 |21 . 234|21 . |
|00000880| 20 20 33 36 36 34 33 20 | 20 35 31 32 32 35 37 37 | 36643 | 5122577|
|00000890| 37 31 30 20 20 32 32 35 | 35 32 00 20 30 00 00 00 |710 225|52. 0...|
|000008a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000900| 00 75 73 74 61 72 20 20 | 00 6d 61 78 00 00 00 00 |.ustar |.max....|
|00000910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000920| 00 00 00 00 00 00 00 00 | 00 73 63 68 6d 61 74 69 |........|.schmati|
|00000930| 6b 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |k.......|........|
|00000940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a00| 23 69 6e 63 6c 75 64 65 | 20 22 73 63 68 65 6d 65 |#include| "scheme|
|00000a10| 2e 68 22 0a 23 69 6e 63 | 6c 75 64 65 20 22 70 72 |.h".#inc|lude "pr|
|00000a20| 69 6d 73 2e 68 22 0a 23 | 69 6e 63 6c 75 64 65 20 |ims.h".#|include |
|00000a30| 3c 64 70 73 63 6c 69 65 | 6e 74 2f 64 70 73 63 6c |<dpsclie|nt/dpscl|
|00000a40| 69 65 6e 74 2e 68 3e 0a | 23 69 6e 63 6c 75 64 65 |ient.h>.|#include|
|00000a50| 20 3c 64 70 73 63 6c 69 | 65 6e 74 2f 64 70 73 6f | <dpscli|ent/dpso|
|00000a60| 70 73 2e 68 3e 0a 23 69 | 6e 63 6c 75 64 65 20 3c |ps.h>.#i|nclude <|
|00000a70| 6d 61 74 68 2e 68 3e 0a | 23 69 6e 63 6c 75 64 65 |math.h>.|#include|
|00000a80| 20 3c 6f 62 6a 63 2f 65 | 72 72 6f 72 2e 68 3e 0a | <objc/e|rror.h>.|
|00000a90| 23 69 6e 63 6c 75 64 65 | 20 3c 73 69 67 6e 61 6c |#include| <signal|
|00000aa0| 2e 68 3e 0a 23 69 6e 63 | 6c 75 64 65 20 22 73 63 |.h>.#inc|lude "sc|
|00000ab0| 68 77 72 61 70 73 2e 68 | 22 0a 0a 23 64 65 66 69 |hwraps.h|"..#defi|
|00000ac0| 6e 65 20 41 54 4f 4d 49 | 43 20 7b 69 6e 74 20 5f |ne ATOMI|C {int _|
|00000ad0| 61 74 6f 6d 69 63 5f 6d | 61 73 6b 20 3d 20 73 69 |atomic_m|ask = si|
|00000ae0| 67 73 65 74 6d 61 73 6b | 28 7e 30 29 3b 0a 23 64 |gsetmask|(~0);.#d|
|00000af0| 65 66 69 6e 65 20 45 4e | 44 5f 41 54 4f 4d 49 43 |efine EN|D_ATOMIC|
|00000b00| 20 73 69 67 73 65 74 6d | 61 73 6b 28 5f 61 74 6f | sigsetm|ask(_ato|
|00000b10| 6d 69 63 5f 6d 61 73 6b | 29 3b 7d 0a 23 64 65 66 |mic_mask|);}.#def|
|00000b20| 69 6e 65 20 4c 45 41 56 | 45 5f 41 54 4f 4d 49 43 |ine LEAV|E_ATOMIC|
|00000b30| 20 73 69 67 73 65 74 6d | 61 73 6b 28 5f 61 74 6f | sigsetm|ask(_ato|
|00000b40| 6d 69 63 5f 6d 61 73 6b | 29 0a 0a 23 64 65 66 69 |mic_mask|)..#defi|
|00000b50| 6e 65 20 4d 41 58 5f 4e | 41 4d 45 5f 4c 45 4e 47 |ne MAX_N|AME_LENG|
|00000b60| 54 48 20 31 30 32 34 0a | 0a 23 64 65 66 69 6e 65 |TH 1024.|.#define|
|00000b70| 20 47 49 4e 5f 46 44 20 | 33 0a 23 64 65 66 69 6e | GIN_FD |3.#defin|
|00000b80| 65 20 47 4f 55 54 5f 46 | 44 20 31 0a 23 64 65 66 |e GOUT_F|D 1.#def|
|00000b90| 69 6e 65 20 49 4e 49 54 | 5f 43 4f 4e 54 45 58 54 |ine INIT|_CONTEXT|
|00000ba0| 53 20 32 30 0a 0a 73 74 | 61 74 69 63 20 46 49 4c |S 20..st|atic FIL|
|00000bb0| 45 20 2a 67 69 6e 2c 20 | 2a 67 6f 75 74 2c 20 2a |E *gin, |*gout, *|
|00000bc0| 63 6f 6e 73 6f 6c 65 3b | 0a 73 74 61 74 69 63 20 |console;|.static |
|00000bd0| 44 50 53 43 6f 6e 74 65 | 78 74 20 2a 63 6f 6e 74 |DPSConte|xt *cont|
|00000be0| 65 78 74 73 20 3d 20 4e | 55 4c 4c 3b 0a 73 74 61 |exts = N|ULL;.sta|
|00000bf0| 74 69 63 20 75 6e 73 69 | 67 6e 65 64 20 63 6f 6e |tic unsi|gned con|
|00000c00| 74 65 78 74 73 5f 6d 61 | 6c 6c 6f 63 65 64 3b 0a |texts_ma|lloced;.|
|00000c10| 73 74 61 74 69 63 20 75 | 6e 73 69 67 6e 65 64 20 |static u|nsigned |
|00000c20| 63 6f 6e 74 65 78 74 73 | 5f 69 6e 5f 75 73 65 20 |contexts|_in_use |
|00000c30| 3d 20 30 3b 0a 73 74 61 | 74 69 63 20 69 6e 74 20 |= 0;.sta|tic int |
|00000c40| 6f 70 74 69 6d 69 73 74 | 69 63 2c 20 6e 6f 53 70 |optimist|ic, noSp|
|00000c50| 61 63 65 2c 20 69 6e 43 | 6f 6e 74 65 78 74 57 61 |ace, inC|ontextWa|
|00000c60| 69 74 3d 30 3b 0a 0a 73 | 74 61 74 69 63 20 66 6c |it=0;..s|tatic fl|
|00000c70| 6f 61 74 20 6c 69 6e 65 | 5f 73 74 79 6c 65 5f 70 |oat line|_style_p|
|00000c80| 61 74 73 5b 38 5d 5b 36 | 5d 20 3d 20 7b 7b 7d 2c |ats[8][6|] = {{},|
|00000c90| 20 7b 38 7d 2c 20 7b 33 | 7d 2c 20 7b 38 2c 33 2c | {8}, {3|}, {8,3,|
|00000ca0| 32 2c 33 7d 2c 0a 20 20 | 20 20 20 20 20 20 20 20 |2,3},. | |
|00000cb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000cc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 7b 36 2c 32 | | {6,2|
|00000cd0| 2c 32 2c 32 2c 32 2c 32 | 7d 2c 20 7b 31 31 2c 35 |,2,2,2,2|}, {11,5|
|00000ce0| 7d 2c 7b 37 2c 33 2c 33 | 2c 33 7d 2c 0a 20 20 20 |},{7,3,3|,3},. |
|00000cf0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000d00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000d10| 20 20 20 7b 35 2c 32 2c | 33 2c 32 2c 33 2c 32 7d | {5,2,|3,2,3,2}|
|00000d20| 7d 3b 0a 73 74 61 74 69 | 63 20 69 6e 74 20 6c 69 |};.stati|c int li|
|00000d30| 6e 65 5f 73 74 79 6c 65 | 5f 73 69 7a 65 73 5b 38 |ne_style|_sizes[8|
|00000d40| 5d 20 3d 20 7b 30 2c 31 | 2c 31 2c 34 2c 36 2c 32 |] = {0,1|,1,4,6,2|
|00000d50| 2c 34 2c 36 7d 3b 0a 73 | 74 61 74 69 63 20 66 6c |,4,6};.s|tatic fl|
|00000d60| 6f 61 74 20 6c 69 6e 65 | 5f 73 74 79 6c 65 5f 6f |oat line|_style_o|
|00000d70| 66 66 73 65 74 73 5b 38 | 5d 20 3d 20 7b 30 2c 30 |ffsets[8|] = {0,0|
|00000d80| 2c 30 2c 30 2c 30 2c 30 | 2c 30 2c 30 7d 3b 0a 0a |,0,0,0,0|,0,0};..|
|00000d90| 73 74 61 74 69 63 20 76 | 6f 69 64 0a 44 45 46 55 |static v|oid.DEFU|
|00000da0| 4e 20 28 73 63 68 67 72 | 61 70 68 5f 65 72 72 6f |N (schgr|aph_erro|
|00000db0| 72 2c 20 28 6d 65 73 73 | 61 67 65 29 2c 0a 20 20 |r, (mess|age),. |
|00000dc0| 20 20 20 20 20 63 68 61 | 72 20 2a 6d 65 73 73 61 | cha|r *messa|
|00000dd0| 67 65 29 0a 7b 0a 20 20 | 66 70 72 69 6e 74 66 28 |ge).{. |fprintf(|
|00000de0| 63 6f 6e 73 6f 6c 65 2c | 20 22 53 63 68 65 6d 65 |console,| "Scheme|
|00000df0| 20 67 72 61 70 68 69 63 | 73 3a 20 25 73 5c 6e 22 | graphic|s: %s\n"|
|00000e00| 2c 20 6d 65 73 73 61 67 | 65 29 3b 0a 20 20 73 69 |, messag|e);. si|
|00000e10| 67 6e 61 6c 5f 65 72 72 | 6f 72 5f 66 72 6f 6d 5f |gnal_err|or_from_|
|00000e20| 70 72 69 6d 69 74 69 76 | 65 28 45 52 52 5f 49 4f |primitiv|e(ERR_IO|
|00000e30| 5f 45 52 52 4f 52 29 3b | 0a 7d 0a 0a 73 74 61 74 |_ERROR);|.}..stat|
|00000e40| 69 63 20 76 6f 69 64 0a | 44 45 46 55 4e 20 28 4d |ic void.|DEFUN (M|
|00000e50| 79 54 65 78 74 50 72 6f | 63 2c 20 28 63 74 78 74 |yTextPro|c, (ctxt|
|00000e60| 2c 20 62 75 66 2c 20 63 | 6f 75 6e 74 29 2c 0a 20 |, buf, c|ount),. |
|00000e70| 20 20 20 20 20 20 44 50 | 53 43 6f 6e 74 65 78 74 | DP|SContext|
|00000e80| 20 63 74 78 74 20 41 4e | 44 0a 20 20 20 20 20 20 | ctxt AN|D. |
|00000e90| 20 63 6f 6e 73 74 20 63 | 68 61 72 20 2a 62 75 66 | const c|har *buf|
|00000ea0| 20 41 4e 44 0a 20 20 20 | 20 20 20 20 6c 6f 6e 67 | AND. | long|
|00000eb0| 20 75 6e 73 69 67 6e 65 | 64 20 69 6e 74 20 63 6f | unsigne|d int co|
|00000ec0| 75 6e 74 29 0a 7b 0a 20 | 20 66 77 72 69 74 65 28 |unt).{. | fwrite(|
|00000ed0| 62 75 66 2c 20 31 2c 20 | 63 6f 75 6e 74 2c 20 63 |buf, 1, |count, c|
|00000ee0| 6f 6e 73 6f 6c 65 29 3b | 0a 7d 0a 0a 73 74 61 74 |onsole);|.}..stat|
|00000ef0| 69 63 20 76 6f 69 64 0a | 44 45 46 55 4e 20 28 68 |ic void.|DEFUN (h|
|00000f00| 61 6e 64 6c 65 72 2c 20 | 28 63 6f 6e 74 65 78 74 |andler, |(context|
|00000f10| 2c 20 65 72 72 6f 72 49 | 6e 66 6f 29 2c 0a 20 20 |, errorI|nfo),. |
|00000f20| 20 20 20 20 20 44 50 53 | 43 6f 6e 74 65 78 74 20 | DPS|Context |
|00000f30| 63 6f 6e 74 65 78 74 20 | 41 4e 44 0a 20 20 20 20 |context |AND. |
|00000f40| 20 20 20 4e 58 48 61 6e | 64 6c 65 72 20 2a 65 72 | NXHan|dler *er|
|00000f50| 72 6f 72 49 6e 66 6f 29 | 0a 7b 0a 20 20 69 66 28 |rorInfo)|.{. if(|
|00000f60| 65 72 72 6f 72 49 6e 66 | 6f 2d 3e 63 6f 64 65 20 |errorInf|o->code |
|00000f70| 3d 3d 20 64 70 73 5f 65 | 72 72 5f 70 73 29 7b 0a |== dps_e|rr_ps){.|
|00000f80| 20 20 20 20 66 70 72 69 | 6e 74 66 28 63 6f 6e 73 | fpri|ntf(cons|
|00000f90| 6f 6c 65 2c 20 22 53 63 | 68 65 6d 65 20 67 72 61 |ole, "Sc|heme gra|
|00000fa0| 70 68 69 63 73 3a 20 22 | 29 3b 0a 20 20 20 20 44 |phics: "|);. D|
|00000fb0| 50 53 50 72 69 6e 74 45 | 72 72 6f 72 28 63 6f 6e |PSPrintE|rror(con|
|00000fc0| 73 6f 6c 65 2c 20 28 44 | 50 53 42 69 6e 4f 62 6a |sole, (D|PSBinObj|
|00000fd0| 53 65 71 29 20 65 72 72 | 6f 72 49 6e 66 6f 2d 3e |Seq) err|orInfo->|
|00000fe0| 64 61 74 61 32 29 3b 0a | 20 20 7d 0a 20 20 65 6c |data2);.| }. el|
|00000ff0| 73 65 7b 0a 20 20 20 20 | 66 70 72 69 6e 74 66 28 |se{. |fprintf(|
|00001000| 63 6f 6e 73 6f 6c 65 2c | 0a 20 20 20 20 20 20 20 |console,|. |
|00001010| 20 20 20 20 20 22 53 63 | 68 65 6d 65 20 67 72 61 | "Sc|heme gra|
|00001020| 70 68 69 63 73 3a 20 6e | 6f 6e 20 70 6f 73 74 73 |phics: n|on posts|
|00001030| 63 72 69 70 74 20 44 50 | 53 20 65 72 72 6f 72 3b |cript DP|S error;|
|00001040| 20 63 6f 64 65 3a 20 25 | 64 5c 6e 22 2c 0a 20 20 | code: %|d\n",. |
|00001050| 20 20 20 20 20 20 20 20 | 20 20 65 72 72 6f 72 49 | | errorI|
|00001060| 6e 66 6f 2d 3e 63 6f 64 | 65 29 3b 0a 20 20 20 20 |nfo->cod|e);. |
|00001070| 7d 0a 20 20 69 66 28 65 | 72 72 6f 72 49 6e 66 6f |}. if(e|rrorInfo|
|00001080| 2d 3e 64 61 74 61 31 20 | 21 3d 20 4e 55 4c 4c 29 |->data1 |!= NULL)|
|00001090| 7b 0a 20 20 20 20 44 50 | 53 43 6f 6e 74 65 78 74 |{. DP|SContext|
|000010a0| 20 63 74 78 74 20 3d 20 | 28 44 50 53 43 6f 6e 74 | ctxt = |(DPSCont|
|000010b0| 65 78 74 29 20 65 72 72 | 6f 72 49 6e 66 6f 2d 3e |ext) err|orInfo->|
|000010c0| 64 61 74 61 31 3b 0a 20 | 20 20 20 69 6e 74 20 64 |data1;. | int d|
|000010d0| 65 76 69 63 65 3b 0a 20 | 20 20 20 44 50 53 44 65 |evice;. | DPSDe|
|000010e0| 73 74 72 6f 79 43 6f 6e | 74 65 78 74 28 63 74 78 |stroyCon|text(ctx|
|000010f0| 74 29 3b 0a 20 20 20 20 | 66 6f 72 28 64 65 76 69 |t);. |for(devi|
|00001100| 63 65 20 3d 20 30 3b 20 | 64 65 76 69 63 65 20 3c |ce = 0; |device <|
|00001110| 20 63 6f 6e 74 65 78 74 | 73 5f 6d 61 6c 6c 6f 63 | context|s_malloc|
|00001120| 65 64 3b 20 64 65 76 69 | 63 65 2b 2b 29 0a 20 20 |ed; devi|ce++). |
|00001130| 20 20 20 20 69 66 28 63 | 6f 6e 74 65 78 74 73 5b | if(c|ontexts[|
|00001140| 64 65 76 69 63 65 5d 20 | 3d 3d 20 63 74 78 74 29 |device] |== ctxt)|
|00001150| 7b 0a 20 20 20 20 20 20 | 20 20 63 6f 6e 74 65 78 |{. | contex|
|00001160| 74 73 5b 64 65 76 69 63 | 65 5d 20 3d 20 4e 55 4c |ts[devic|e] = NUL|
|00001170| 4c 3b 0a 20 20 20 20 20 | 20 20 20 63 6f 6e 74 65 |L;. | conte|
|00001180| 78 74 73 5f 69 6e 5f 75 | 73 65 2d 2d 3b 0a 20 20 |xts_in_u|se--;. |
|00001190| 20 20 20 20 20 20 66 70 | 72 69 6e 74 66 28 67 6f | fp|rintf(go|
|000011a0| 75 74 2c 20 22 5c 30 33 | 33 47 63 25 64 5c 30 33 |ut, "\03|3Gc%d\03|
|000011b0| 33 22 2c 20 64 65 76 69 | 63 65 29 3b 0a 20 20 20 |3", devi|ce);. |
|000011c0| 20 20 20 20 20 69 66 28 | 63 6f 6e 74 65 78 74 20 | if(|context |
|000011d0| 3d 3d 20 63 74 78 74 29 | 0a 20 20 20 20 20 20 20 |== ctxt)|. |
|000011e0| 20 20 20 73 69 67 6e 61 | 6c 5f 65 72 72 6f 72 5f | signa|l_error_|
|000011f0| 66 72 6f 6d 5f 70 72 69 | 6d 69 74 69 76 65 28 45 |from_pri|mitive(E|
|00001200| 52 52 5f 49 4f 5f 45 52 | 52 4f 52 29 3b 0a 20 20 |RR_IO_ER|ROR);. |
|00001210| 20 20 20 20 20 20 65 6c | 73 65 0a 20 20 20 20 20 | el|se. |
|00001220| 20 20 20 20 20 72 65 74 | 75 72 6e 3b 0a 20 20 20 | ret|urn;. |
|00001230| 20 20 20 7d 0a 20 20 7d | 0a 7d 0a 0a 23 64 65 66 | }. }|.}..#def|
|00001240| 69 6e 65 20 48 41 4e 44 | 4c 45 52 20 4e 58 5f 48 |ine HAND|LER NX_H|
|00001250| 41 4e 44 4c 45 52 20 68 | 61 6e 64 6c 65 72 28 63 |ANDLER h|andler(c|
|00001260| 6f 6e 74 65 78 74 2c 20 | 26 4e 58 4c 6f 63 61 6c |ontext, |&NXLocal|
|00001270| 48 61 6e 64 6c 65 72 29 | 3b 20 4e 58 5f 45 4e 44 |Handler)|; NX_END|
|00001280| 48 41 4e 44 4c 45 52 0a | 0a 73 74 61 74 69 63 20 |HANDLER.|.static |
|00001290| 75 6e 73 69 67 6e 65 64 | 20 69 6e 74 0a 44 45 46 |unsigned| int.DEF|
|000012a0| 55 4e 20 28 61 72 67 5f | 64 65 76 69 63 65 2c 20 |UN (arg_|device, |
|000012b0| 28 61 72 67 5f 6e 75 6d | 62 65 72 29 2c 0a 20 20 |(arg_num|ber),. |
|000012c0| 20 20 20 20 20 75 6e 73 | 69 67 6e 65 64 20 69 6e | uns|igned in|
|000012d0| 74 20 61 72 67 5f 6e 75 | 6d 62 65 72 29 0a 7b 0a |t arg_nu|mber).{.|
|000012e0| 20 20 75 6e 73 69 67 6e | 65 64 20 69 6e 74 20 72 | unsign|ed int r|
|000012f0| 65 73 75 6c 74 20 3d 20 | 61 72 67 5f 69 6e 64 65 |esult = |arg_inde|
|00001300| 78 5f 69 6e 74 65 67 65 | 72 28 61 72 67 5f 6e 75 |x_intege|r(arg_nu|
|00001310| 6d 62 65 72 2c 20 63 6f | 6e 74 65 78 74 73 5f 6d |mber, co|ntexts_m|
|00001320| 61 6c 6c 6f 63 65 64 29 | 3b 0a 20 20 69 66 28 63 |alloced)|;. if(c|
|00001330| 6f 6e 74 65 78 74 73 5b | 72 65 73 75 6c 74 5d 20 |ontexts[|result] |
|00001340| 3d 3d 20 4e 55 4c 4c 29 | 0a 20 20 20 20 65 72 72 |== NULL)|. err|
|00001350| 6f 72 5f 62 61 64 5f 72 | 61 6e 67 65 5f 61 72 67 |or_bad_r|ange_arg|
|00001360| 28 61 72 67 5f 6e 75 6d | 62 65 72 29 3b 0a 20 20 |(arg_num|ber);. |
|00001370| 72 65 74 75 72 6e 28 72 | 65 73 75 6c 74 29 3b 0a |return(r|esult);.|
|00001380| 7d 0a 0a 73 74 61 74 69 | 63 20 44 50 53 43 6f 6e |}..stati|c DPSCon|
|00001390| 74 65 78 74 0a 44 45 46 | 55 4e 20 28 61 72 67 5f |text.DEF|UN (arg_|
|000013a0| 63 6f 6e 74 65 78 74 2c | 20 28 61 72 67 5f 6e 75 |context,| (arg_nu|
|000013b0| 6d 62 65 72 29 2c 0a 20 | 20 20 20 20 20 20 75 6e |mber),. | un|
|000013c0| 73 69 67 6e 65 64 20 69 | 6e 74 20 61 72 67 5f 6e |signed i|nt arg_n|
|000013d0| 75 6d 62 65 72 29 0a 7b | 0a 20 20 44 50 53 43 6f |umber).{|. DPSCo|
|000013e0| 6e 74 65 78 74 20 72 65 | 73 75 6c 74 20 3d 0a 20 |ntext re|sult =. |
|000013f0| 20 20 20 63 6f 6e 74 65 | 78 74 73 5b 61 72 67 5f | conte|xts[arg_|
|00001400| 69 6e 64 65 78 5f 69 6e | 74 65 67 65 72 28 61 72 |index_in|teger(ar|
|00001410| 67 5f 6e 75 6d 62 65 72 | 2c 20 63 6f 6e 74 65 78 |g_number|, contex|
|00001420| 74 73 5f 6d 61 6c 6c 6f | 63 65 64 29 5d 3b 0a 20 |ts_mallo|ced)];. |
|00001430| 20 69 66 28 72 65 73 75 | 6c 74 20 3d 3d 20 4e 55 | if(resu|lt == NU|
|00001440| 4c 4c 29 0a 20 20 20 20 | 65 72 72 6f 72 5f 62 61 |LL). |error_ba|
|00001450| 64 5f 72 61 6e 67 65 5f | 61 72 67 28 61 72 67 5f |d_range_|arg(arg_|
|00001460| 6e 75 6d 62 65 72 29 3b | 0a 20 20 72 65 74 75 72 |number);|. retur|
|00001470| 6e 28 72 65 73 75 6c 74 | 29 3b 0a 7d 0a 0a 73 74 |n(result|);.}..st|
|00001480| 61 74 69 63 20 76 6f 69 | 64 0a 44 45 46 55 4e 5f |atic voi|d.DEFUN_|
|00001490| 56 4f 49 44 20 28 69 6e | 69 74 69 61 6c 69 7a 65 |VOID (in|itialize|
|000014a0| 5f 73 63 68 67 72 61 70 | 68 29 0a 7b 0a 20 20 65 |_schgrap|h).{. e|
|000014b0| 78 74 65 72 6e 20 76 6f | 69 64 20 2a 63 61 6c 6c |xtern vo|id *call|
|000014c0| 6f 63 28 29 3b 0a 20 20 | 65 78 74 65 72 6e 20 63 |oc();. |extern c|
|000014d0| 68 61 72 20 2a 67 65 74 | 65 6e 76 28 29 3b 0a 20 |har *get|env();. |
|000014e0| 20 6f 70 74 69 6d 69 73 | 74 69 63 20 3d 20 28 67 | optimis|tic = (g|
|000014f0| 65 74 65 6e 76 28 22 53 | 43 48 47 52 41 50 48 5f |etenv("S|CHGRAPH_|
|00001500| 4f 50 54 49 4d 49 53 54 | 49 43 22 29 20 21 3d 20 |OPTIMIST|IC") != |
|00001510| 4e 55 4c 4c 29 3b 0a 20 | 20 6e 6f 53 70 61 63 65 |NULL);. | noSpace|
|00001520| 20 3d 20 28 67 65 74 65 | 6e 76 28 22 53 43 48 47 | = (gete|nv("SCHG|
|00001530| 52 41 50 48 5f 4e 4f 5f | 53 50 41 43 45 22 29 20 |RAPH_NO_|SPACE") |
|00001540| 21 3d 20 4e 55 4c 4c 29 | 3b 0a 20 20 69 66 28 28 |!= NULL)|;. if((|
|00001550| 63 6f 6e 73 6f 6c 65 20 | 3d 20 66 6f 70 65 6e 28 |console |= fopen(|
|00001560| 22 2f 64 65 76 2f 63 6f | 6e 73 6f 6c 65 22 2c 20 |"/dev/co|nsole", |
|00001570| 22 77 22 29 29 20 3d 3d | 20 4e 55 4c 4c 29 0a 20 |"w")) ==| NULL). |
|00001580| 20 20 20 73 69 67 6e 61 | 6c 5f 65 72 72 6f 72 5f | signa|l_error_|
|00001590| 66 72 6f 6d 5f 70 72 69 | 6d 69 74 69 76 65 28 45 |from_pri|mitive(E|
|000015a0| 52 52 5f 49 4f 5f 45 52 | 52 4f 52 29 3b 0a 20 20 |RR_IO_ER|ROR);. |
|000015b0| 73 65 74 76 62 75 66 28 | 63 6f 6e 73 6f 6c 65 2c |setvbuf(|console,|
|000015c0| 20 4e 55 4c 4c 2c 20 5f | 49 4f 4e 42 46 2c 20 30 | NULL, _|IONBF, 0|
|000015d0| 29 3b 0a 20 20 69 66 28 | 28 67 69 6e 20 3d 20 66 |);. if(|(gin = f|
|000015e0| 64 6f 70 65 6e 28 47 49 | 4e 5f 46 44 2c 20 22 72 |dopen(GI|N_FD, "r|
|000015f0| 22 29 29 20 3d 3d 20 4e | 55 4c 4c 29 0a 20 20 20 |")) == N|ULL). |
|00001600| 20 73 63 68 67 72 61 70 | 68 5f 65 72 72 6f 72 28 | schgrap|h_error(|
|00001610| 22 65 72 72 6f 72 20 6f | 70 65 6e 69 6e 67 20 67 |"error o|pening g|
|00001620| 72 61 70 68 69 63 73 20 | 69 6e 70 75 74 22 29 3b |raphics |input");|
|00001630| 0a 20 20 69 66 28 28 67 | 6f 75 74 20 3d 20 66 64 |. if((g|out = fd|
|00001640| 6f 70 65 6e 28 47 4f 55 | 54 5f 46 44 2c 20 22 77 |open(GOU|T_FD, "w|
|00001650| 22 29 29 20 3d 3d 20 4e | 55 4c 4c 29 0a 20 20 20 |")) == N|ULL). |
|00001660| 20 73 63 68 67 72 61 70 | 68 5f 65 72 72 6f 72 28 | schgrap|h_error(|
|00001670| 22 65 72 72 6f 72 20 6f | 70 65 6e 69 6e 67 20 67 |"error o|pening g|
|00001680| 72 61 70 68 69 63 73 20 | 6f 75 74 70 75 74 22 29 |raphics |output")|
|00001690| 3b 0a 20 20 73 65 74 76 | 62 75 66 28 67 6f 75 74 |;. setv|buf(gout|
|000016a0| 2c 20 4e 55 4c 4c 2c 20 | 5f 49 4f 4e 42 46 2c 20 |, NULL, |_IONBF, |
|000016b0| 30 29 3b 0a 20 20 69 66 | 28 28 63 6f 6e 74 65 78 |0);. if|((contex|
|000016c0| 74 73 20 3d 20 63 61 6c | 6c 6f 63 28 73 69 7a 65 |ts = cal|loc(size|
|000016d0| 6f 66 28 44 50 53 43 6f | 6e 74 65 78 74 29 2c 20 |of(DPSCo|ntext), |
|000016e0| 49 4e 49 54 5f 43 4f 4e | 54 45 58 54 53 29 29 20 |INIT_CON|TEXTS)) |
|000016f0| 3d 3d 20 4e 55 4c 4c 29 | 0a 20 20 20 20 73 63 68 |== NULL)|. sch|
|00001700| 67 72 61 70 68 5f 65 72 | 72 6f 72 28 22 65 72 72 |graph_er|ror("err|
|00001710| 6f 72 20 61 6c 6c 6f 63 | 61 74 69 6e 67 20 69 6e |or alloc|ating in|
|00001720| 69 74 69 61 6c 20 63 6f | 6e 74 65 78 74 73 20 61 |itial co|ntexts a|
|00001730| 72 72 61 79 22 29 3b 0a | 20 20 63 6f 6e 74 65 78 |rray");.| contex|
|00001740| 74 73 5f 6d 61 6c 6c 6f | 63 65 64 20 3d 20 49 4e |ts_mallo|ced = IN|
|00001750| 49 54 5f 43 4f 4e 54 45 | 58 54 53 3b 0a 20 20 44 |IT_CONTE|XTS;. D|
|00001760| 50 53 53 65 74 54 65 78 | 74 42 61 63 6b 73 74 6f |PSSetTex|tBacksto|
|00001770| 70 28 4d 79 54 65 78 74 | 50 72 6f 63 29 3b 0a 20 |p(MyText|Proc);. |
|00001780| 20 44 50 53 53 65 74 45 | 72 72 6f 72 42 61 63 6b | DPSSetE|rrorBack|
|00001790| 73 74 6f 70 28 44 50 53 | 44 65 66 61 75 6c 74 45 |stop(DPS|DefaultE|
|000017a0| 72 72 6f 72 50 72 6f 63 | 29 3b 0a 7d 0a 0a 73 74 |rrorProc|);.}..st|
|000017b0| 61 74 69 63 20 76 6f 69 | 64 0a 44 45 46 55 4e 20 |atic voi|d.DEFUN |
|000017c0| 28 61 64 6a 75 73 74 43 | 6f 6f 72 64 69 6e 61 74 |(adjustC|oordinat|
|000017d0| 65 73 2c 20 28 63 6f 6e | 74 65 78 74 2c 20 6f 6c |es, (con|text, ol|
|000017e0| 64 5f 78 6c 2c 20 6f 6c | 64 5f 79 62 2c 20 6f 6c |d_xl, ol|d_yb, ol|
|000017f0| 64 5f 78 72 2c 20 6f 6c | 64 5f 79 74 2c 0a 20 20 |d_xr, ol|d_yt,. |
|00001800| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001810| 20 20 20 20 20 20 20 20 | 20 6e 65 77 5f 78 6c 2c | | new_xl,|
|00001820| 20 6e 65 77 5f 79 62 2c | 20 6e 65 77 5f 78 72 2c | new_yb,| new_xr,|
|00001830| 20 6e 65 77 5f 79 74 29 | 2c 0a 20 20 20 20 20 20 | new_yt)|,. |
|00001840| 20 44 50 53 43 6f 6e 74 | 65 78 74 20 63 6f 6e 74 | DPSCont|ext cont|
|00001850| 65 78 74 20 41 4e 44 0a | 20 20 20 20 20 20 20 66 |ext AND.| f|
|00001860| 6c 6f 61 74 20 6f 6c 64 | 5f 78 6c 20 41 4e 44 0a |loat old|_xl AND.|
|00001870| 20 20 20 20 20 20 20 66 | 6c 6f 61 74 20 6f 6c 64 | f|loat old|
|00001880| 5f 79 62 20 41 4e 44 0a | 20 20 20 20 20 20 20 66 |_yb AND.| f|
|00001890| 6c 6f 61 74 20 6f 6c 64 | 5f 78 72 20 41 4e 44 0a |loat old|_xr AND.|
|000018a0| 20 20 20 20 20 20 20 66 | 6c 6f 61 74 20 6f 6c 64 | f|loat old|
|000018b0| 5f 79 74 20 41 4e 44 0a | 20 20 20 20 20 20 20 66 |_yt AND.| f|
|000018c0| 6c 6f 61 74 20 6e 65 77 | 5f 78 6c 20 41 4e 44 0a |loat new|_xl AND.|
|000018d0| 20 20 20 20 20 20 20 66 | 6c 6f 61 74 20 6e 65 77 | f|loat new|
|000018e0| 5f 79 62 20 41 4e 44 0a | 20 20 20 20 20 20 20 66 |_yb AND.| f|
|000018f0| 6c 6f 61 74 20 6e 65 77 | 5f 78 72 20 41 4e 44 0a |loat new|_xr AND.|
|00001900| 20 20 20 20 20 20 20 66 | 6c 6f 61 74 20 6e 65 77 | f|loat new|
|00001910| 5f 79 74 29 0a 7b 0a 20 | 20 66 6c 6f 61 74 20 79 |_yt).{. | float y|
|00001920| 73 63 61 6c 65 20 3d 20 | 28 6e 65 77 5f 79 74 20 |scale = |(new_yt |
|00001930| 2d 20 6e 65 77 5f 79 62 | 29 20 2f 20 28 6f 6c 64 |- new_yb|) / (old|
|00001940| 5f 79 74 20 2d 20 6f 6c | 64 5f 79 62 29 3b 0a 20 |_yt - ol|d_yb);. |
|00001950| 20 66 6c 6f 61 74 20 78 | 73 63 61 6c 65 20 3d 20 | float x|scale = |
|00001960| 28 6e 65 77 5f 78 72 20 | 2d 20 6e 65 77 5f 78 6c |(new_xr |- new_xl|
|00001970| 29 20 2f 20 28 6f 6c 64 | 5f 78 72 20 2d 20 6f 6c |) / (old|_xr - ol|
|00001980| 64 5f 78 6c 29 3b 0a 20 | 20 66 6c 6f 61 74 20 61 |d_xl);. | float a|
|00001990| 76 67 73 63 61 6c 65 20 | 3d 20 73 71 72 74 28 66 |vgscale |= sqrt(f|
|000019a0| 61 62 73 28 78 73 63 61 | 6c 65 20 2a 20 79 73 63 |abs(xsca|le * ysc|
|000019b0| 61 6c 65 29 29 3b 0a 20 | 20 50 53 57 61 64 6a 75 |ale));. | PSWadju|
|000019c0| 73 74 43 6f 6f 72 64 69 | 6e 61 74 65 73 28 63 6f |stCoordi|nates(co|
|000019d0| 6e 74 65 78 74 2c 20 6f | 6c 64 5f 78 6c 2c 20 6f |ntext, o|ld_xl, o|
|000019e0| 6c 64 5f 79 62 2c 20 6f | 6c 64 5f 78 72 2c 20 6f |ld_yb, o|ld_xr, o|
|000019f0| 6c 64 5f 79 74 2c 20 6e | 65 77 5f 78 6c 2c 0a 20 |ld_yt, n|ew_xl,. |
|00001a00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001a10| 20 20 20 20 20 20 6e 65 | 77 5f 79 62 2c 20 6e 65 | ne|w_yb, ne|
|00001a20| 77 5f 78 72 2c 20 6e 65 | 77 5f 79 74 2c 20 78 73 |w_xr, ne|w_yt, xs|
|00001a30| 63 61 6c 65 2c 20 79 73 | 63 61 6c 65 2c 20 61 76 |cale, ys|cale, av|
|00001a40| 67 73 63 61 6c 65 29 3b | 0a 7d 0a 0a 44 45 46 49 |gscale);|.}..DEFI|
|00001a50| 4e 45 5f 50 52 49 4d 49 | 54 49 56 45 20 28 22 53 |NE_PRIMI|TIVE ("S|
|00001a60| 43 48 47 52 41 50 48 2d | 4f 50 45 4e 22 2c 20 50 |CHGRAPH-|OPEN", P|
|00001a70| 72 69 6d 5f 73 63 68 67 | 72 61 70 68 5f 6f 70 65 |rim_schg|raph_ope|
|00001a80| 6e 2c 20 32 2c 20 32 2c | 0a 20 22 28 53 43 48 47 |n, 2, 2,|. "(SCHG|
|00001a90| 52 41 50 48 2d 4f 50 45 | 4e 20 57 49 44 54 48 20 |RAPH-OPE|N WIDTH |
|00001aa0| 48 45 49 47 48 54 29 5c | 6e 5c 0a 52 65 74 75 72 |HEIGHT)\|n\.Retur|
|00001ab0| 6e 20 61 20 77 69 6e 64 | 6f 77 20 6f 66 20 74 68 |n a wind|ow of th|
|00001ac0| 65 20 65 78 61 63 74 20 | 6e 6f 6e 5f 6e 65 67 61 |e exact |non_nega|
|00001ad0| 74 69 76 65 20 69 6e 74 | 65 67 65 72 20 64 69 6d |tive int|eger dim|
|00001ae0| 65 6e 73 69 6f 6e 73 20 | 69 6e 20 70 69 78 65 6c |ensions |in pixel|
|00001af0| 73 2e 22 29 0a 7b 0a 20 | 20 50 52 49 4d 49 54 49 |s.").{. | PRIMITI|
|00001b00| 56 45 5f 48 45 41 44 45 | 52 20 28 32 29 3b 0a 20 |VE_HEADE|R (2);. |
|00001b10| 20 7b 0a 20 20 20 20 65 | 78 74 65 72 6e 20 76 6f | {. e|xtern vo|
|00001b20| 69 64 20 2a 72 65 61 6c | 6c 6f 63 28 29 3b 0a 20 |id *real|loc();. |
|00001b30| 20 20 20 6c 6f 6e 67 20 | 77 69 64 74 68 20 3d 20 | long |width = |
|00001b40| 55 4e 53 49 47 4e 45 44 | 5f 46 49 58 4e 55 4d 5f |UNSIGNED|_FIXNUM_|
|00001b50| 41 52 47 28 31 29 3b 0a | 20 20 20 20 6c 6f 6e 67 |ARG(1);.| long|
|00001b60| 20 68 65 69 67 68 74 20 | 3d 20 55 4e 53 49 47 4e | height |= UNSIGN|
|00001b70| 45 44 5f 46 49 58 4e 55 | 4d 5f 41 52 47 28 32 29 |ED_FIXNU|M_ARG(2)|
|00001b80| 3b 0a 20 20 20 20 44 50 | 53 43 6f 6e 74 65 78 74 |;. DP|SContext|
|00001b90| 20 63 6f 6e 74 65 78 74 | 3b 0a 20 20 20 20 6c 6f | context|;. lo|
|00001ba0| 6e 67 20 77 69 6e 64 6f | 77 2c 20 64 65 76 69 63 |ng windo|w, devic|
|00001bb0| 65 3b 0a 20 20 20 20 63 | 68 61 72 20 68 6f 73 74 |e;. c|har host|
|00001bc0| 4e 61 6d 65 5b 4d 41 58 | 5f 4e 41 4d 45 5f 4c 45 |Name[MAX|_NAME_LE|
|00001bd0| 4e 47 54 48 5d 2c 20 73 | 65 72 76 65 72 4e 61 6d |NGTH], s|erverNam|
|00001be0| 65 5b 4d 41 58 5f 4e 41 | 4d 45 5f 4c 45 4e 47 54 |e[MAX_NA|ME_LENGT|
|00001bf0| 48 5d 3b 0a 20 20 20 20 | 69 6e 74 20 63 3b 0a 20 |H];. |int c;. |
|00001c00| 20 20 20 65 78 74 65 72 | 6e 20 69 6e 74 20 65 72 | exter|n int er|
|00001c10| 72 6e 6f 3b 0a 20 20 20 | 20 69 66 28 63 6f 6e 74 |rno;. | if(cont|
|00001c20| 65 78 74 73 20 3d 3d 20 | 4e 55 4c 4c 29 0a 20 20 |exts == |NULL). |
|00001c30| 20 20 20 20 69 6e 69 74 | 69 61 6c 69 7a 65 5f 73 | init|ialize_s|
|00001c40| 63 68 67 72 61 70 68 28 | 29 3b 0a 20 20 20 20 69 |chgraph(|);. i|
|00001c50| 66 28 63 6f 6e 74 65 78 | 74 73 5f 69 6e 5f 75 73 |f(contex|ts_in_us|
|00001c60| 65 20 3d 3d 20 63 6f 6e | 74 65 78 74 73 5f 6d 61 |e == con|texts_ma|
|00001c70| 6c 6c 6f 63 65 64 29 7b | 0a 20 20 20 20 20 20 69 |lloced){|. i|
|00001c80| 6e 74 20 69 3b 0a 20 20 | 20 20 20 20 63 6f 6e 74 |nt i;. | cont|
|00001c90| 65 78 74 73 5f 6d 61 6c | 6c 6f 63 65 64 20 2a 3d |exts_mal|loced *=|
|00001ca0| 20 32 3b 0a 20 20 20 20 | 20 20 69 66 28 28 63 6f | 2;. | if((co|
|00001cb0| 6e 74 65 78 74 73 20 3d | 20 72 65 61 6c 6c 6f 63 |ntexts =| realloc|
|00001cc0| 28 63 6f 6e 74 65 78 74 | 73 2c 20 73 69 7a 65 6f |(context|s, sizeo|
|00001cd0| 66 28 44 50 53 43 6f 6e | 74 65 78 74 29 2a 63 6f |f(DPSCon|text)*co|
|00001ce0| 6e 74 65 78 74 73 5f 6d | 61 6c 6c 6f 63 65 64 29 |ntexts_m|alloced)|
|00001cf0| 29 0a 20 20 20 20 20 20 | 20 20 20 3d 3d 20 4e 55 |). | == NU|
|00001d00| 4c 4c 29 0a 20 20 20 20 | 20 20 20 20 73 63 68 67 |LL). | schg|
|00001d10| 72 61 70 68 5f 65 72 72 | 6f 72 28 22 65 72 72 6f |raph_err|or("erro|
|00001d20| 72 20 65 78 74 65 6e 64 | 69 6e 67 20 63 6f 6e 74 |r extend|ing cont|
|00001d30| 65 78 74 73 20 61 72 72 | 61 79 22 29 3b 0a 20 20 |exts arr|ay");. |
|00001d40| 20 20 20 20 66 6f 72 28 | 69 20 3d 20 63 6f 6e 74 | for(|i = cont|
|00001d50| 65 78 74 73 5f 69 6e 5f | 75 73 65 3b 20 69 20 3c |exts_in_|use; i <|
|00001d60| 20 63 6f 6e 74 65 78 74 | 73 5f 6d 61 6c 6c 6f 63 | context|s_malloc|
|00001d70| 65 64 3b 20 69 2b 2b 29 | 0a 20 20 20 20 20 20 20 |ed; i++)|. |
|00001d80| 20 63 6f 6e 74 65 78 74 | 73 5b 69 5d 20 3d 20 4e | context|s[i] = N|
|00001d90| 55 4c 4c 3b 0a 20 20 20 | 20 7d 0a 20 20 20 20 63 |ULL;. | }. c|
|00001da0| 6f 6e 74 65 78 74 73 5f | 69 6e 5f 75 73 65 2b 2b |ontexts_|in_use++|
|00001db0| 3b 0a 20 20 20 20 66 6f | 72 28 64 65 76 69 63 65 |;. fo|r(device|
|00001dc0| 20 3d 20 30 3b 20 63 6f | 6e 74 65 78 74 73 5b 64 | = 0; co|ntexts[d|
|00001dd0| 65 76 69 63 65 5d 20 21 | 3d 20 4e 55 4c 4c 3b 20 |evice] !|= NULL; |
|00001de0| 64 65 76 69 63 65 2b 2b | 29 0a 20 20 20 20 20 20 |device++|). |
|00001df0| 3b 0a 20 20 20 20 66 70 | 72 69 6e 74 66 28 67 6f |;. fp|rintf(go|
|00001e00| 75 74 2c 20 22 5c 30 33 | 33 47 6f 25 64 20 25 64 |ut, "\03|3Go%d %d|
|00001e10| 20 25 64 5c 30 33 33 22 | 2c 20 20 64 65 76 69 63 | %d\033"|, devic|
|00001e20| 65 2c 20 77 69 64 74 68 | 2c 20 68 65 69 67 68 74 |e, width|, height|
|00001e30| 29 3b 0a 20 20 20 20 41 | 54 4f 4d 49 43 0a 20 20 |);. A|TOMIC. |
|00001e40| 20 20 65 72 72 6e 6f 20 | 3d 20 30 3b 0a 20 20 20 | errno |= 0;. |
|00001e50| 20 69 66 28 28 63 3d 66 | 73 63 61 6e 66 28 67 69 | if((c=f|scanf(gi|
|00001e60| 6e 2c 20 22 25 64 22 2c | 20 26 77 69 6e 64 6f 77 |n, "%d",| &window|
|00001e70| 29 29 20 21 3d 20 31 29 | 7b 0a 20 20 20 20 20 20 |)) != 1)|{. |
|00001e80| 4c 45 41 56 45 5f 41 54 | 4f 4d 49 43 3b 0a 20 20 |LEAVE_AT|OMIC;. |
|00001e90| 20 20 20 20 66 70 72 69 | 6e 74 66 28 63 6f 6e 73 | fpri|ntf(cons|
|00001ea0| 6f 6c 65 2c 20 22 53 63 | 68 65 6d 65 20 67 72 61 |ole, "Sc|heme gra|
|00001eb0| 70 68 69 63 73 3a 20 66 | 73 63 61 6e 66 20 72 65 |phics: f|scanf re|
|00001ec0| 74 75 72 6e 65 64 20 25 | 64 2c 20 65 72 72 6e 6f |turned %|d, errno|
|00001ed0| 3d 25 64 5c 6e 22 2c 0a | 20 20 20 20 20 20 20 20 |=%d\n",.| |
|00001ee0| 20 20 20 20 20 20 63 2c | 20 65 72 72 6e 6f 29 3b | c,| errno);|
|00001ef0| 0a 20 20 20 20 20 20 73 | 63 68 67 72 61 70 68 5f |. s|chgraph_|
|00001f00| 65 72 72 6f 72 28 22 65 | 72 72 6f 72 20 72 65 61 |error("e|rror rea|
|00001f10| 64 69 6e 67 20 77 69 6e | 64 6f 77 20 6e 75 6d 62 |ding win|dow numb|
|00001f20| 65 72 20 66 72 6f 6d 20 | 53 63 68 65 6d 61 74 69 |er from |Schemati|
|00001f30| 6b 22 29 3b 0a 20 20 20 | 20 7d 0a 20 20 20 20 65 |k");. | }. e|
|00001f40| 72 72 6e 6f 20 3d 20 30 | 3b 0a 20 20 20 20 69 66 |rrno = 0|;. if|
|00001f50| 28 28 63 3d 67 65 74 63 | 28 67 69 6e 29 29 20 21 |((c=getc|(gin)) !|
|00001f60| 3d 20 27 5c 6e 27 29 7b | 0a 20 20 20 20 20 20 4c |= '\n'){|. L|
|00001f70| 45 41 56 45 5f 41 54 4f | 4d 49 43 3b 0a 20 20 20 |EAVE_ATO|MIC;. |
|00001f80| 20 20 20 66 70 72 69 6e | 74 66 28 63 6f 6e 73 6f | fprin|tf(conso|
|00001f90| 6c 65 2c 20 22 53 63 68 | 65 6d 65 20 67 72 61 70 |le, "Sch|eme grap|
|00001fa0| 68 69 63 73 3a 20 72 65 | 63 65 69 76 65 64 20 63 |hics: re|ceived c|
|00001fb0| 68 61 72 20 25 23 6f 2c | 20 65 72 72 6e 6f 3d 25 |har %#o,| errno=%|
|00001fc0| 64 5c 6e 22 2c 0a 20 20 | 20 20 20 20 20 20 20 20 |d\n",. | |
|00001fd0| 20 20 20 20 63 2c 20 65 | 72 72 6e 6f 29 3b 0a 20 | c, e|rrno);. |
|00001fe0| 20 20 20 20 20 73 63 68 | 67 72 61 70 68 5f 65 72 | sch|graph_er|
|00001ff0| 72 6f 72 28 22 64 69 64 | 6e 27 74 20 66 69 6e 64 |ror("did|n't find|
|00002000| 20 65 78 70 65 63 74 65 | 64 20 6e 65 77 6c 69 6e | expecte|d newlin|
|00002010| 65 20 66 72 6f 6d 20 53 | 63 68 65 6d 61 74 69 6b |e from S|chematik|
|00002020| 22 29 3b 0a 20 20 20 20 | 7d 0a 20 20 20 20 65 72 |");. |}. er|
|00002030| 72 6e 6f 20 3d 20 30 3b | 0a 20 20 20 20 69 66 28 |rno = 0;|. if(|
|00002040| 66 67 65 74 73 28 68 6f | 73 74 4e 61 6d 65 2c 20 |fgets(ho|stName, |
|00002050| 4d 41 58 5f 4e 41 4d 45 | 5f 4c 45 4e 47 54 48 2c |MAX_NAME|_LENGTH,|
|00002060| 20 67 69 6e 29 20 3d 3d | 20 4e 55 4c 4c 29 7b 0a | gin) ==| NULL){.|
|00002070| 20 20 20 20 20 20 4c 45 | 41 56 45 5f 41 54 4f 4d | LE|AVE_ATOM|
|00002080| 49 43 3b 0a 20 20 20 20 | 20 20 66 70 72 69 6e 74 |IC;. | fprint|
|00002090| 66 28 63 6f 6e 73 6f 6c | 65 2c 20 22 53 63 68 65 |f(consol|e, "Sche|
|000020a0| 6d 65 20 67 72 61 70 68 | 69 63 73 3a 20 65 72 72 |me graph|ics: err|
|000020b0| 6e 6f 3d 25 64 5c 6e 22 | 2c 0a 20 20 20 20 20 20 |no=%d\n"|,. |
|000020c0| 20 20 20 20 20 20 20 20 | 65 72 72 6e 6f 29 3b 0a | |errno);.|
|000020d0| 20 20 20 20 20 20 73 63 | 68 67 72 61 70 68 5f 65 | sc|hgraph_e|
|000020e0| 72 72 6f 72 28 22 65 72 | 72 6f 72 20 6f 72 20 65 |rror("er|ror or e|
|000020f0| 6f 66 20 67 65 74 74 69 | 6e 67 20 68 6f 73 74 20 |of getti|ng host |
|00002100| 6e 61 6d 65 20 66 72 6f | 6d 20 53 63 68 65 6d 61 |name fro|m Schema|
|00002110| 74 69 6b 22 29 3b 0a 20 | 20 20 20 7d 0a 20 20 20 |tik");. | }. |
|00002120| 20 69 66 28 68 6f 73 74 | 4e 61 6d 65 5b 63 3d 73 | if(host|Name[c=s|
|00002130| 74 72 6c 65 6e 28 68 6f | 73 74 4e 61 6d 65 29 2d |trlen(ho|stName)-|
|00002140| 31 5d 20 21 3d 20 27 5c | 6e 27 29 7b 0a 20 20 20 |1] != '\|n'){. |
|00002150| 20 20 20 4c 45 41 56 45 | 5f 41 54 4f 4d 49 43 3b | LEAVE|_ATOMIC;|
|00002160| 0a 20 20 20 20 20 20 73 | 63 68 67 72 61 70 68 5f |. s|chgraph_|
|00002170| 65 72 72 6f 72 28 22 68 | 6f 73 74 20 6e 61 6d 65 |error("h|ost name|
|00002180| 20 66 72 6f 6d 20 53 63 | 68 65 6d 61 74 69 6b 20 | from Sc|hematik |
|00002190| 69 73 20 74 6f 6f 20 6c | 6f 6e 67 22 29 3b 0a 20 |is too l|ong");. |
|000021a0| 20 20 20 7d 0a 20 20 20 | 20 68 6f 73 74 4e 61 6d | }. | hostNam|
|000021b0| 65 5b 63 5d 20 3d 20 27 | 5c 30 27 3b 0a 20 20 20 |e[c] = '|\0';. |
|000021c0| 20 65 72 72 6e 6f 20 3d | 20 30 3b 0a 20 20 20 20 | errno =| 0;. |
|000021d0| 69 66 28 66 67 65 74 73 | 28 73 65 72 76 65 72 4e |if(fgets|(serverN|
|000021e0| 61 6d 65 2c 20 4d 41 58 | 5f 4e 41 4d 45 5f 4c 45 |ame, MAX|_NAME_LE|
|000021f0| 4e 47 54 48 2c 20 67 69 | 6e 29 20 3d 3d 20 4e 55 |NGTH, gi|n) == NU|
|00002200| 4c 4c 29 7b 0a 20 20 20 | 20 20 20 4c 45 41 56 45 |LL){. | LEAVE|
|00002210| 5f 41 54 4f 4d 49 43 3b | 0a 20 20 20 20 20 20 66 |_ATOMIC;|. f|
|00002220| 70 72 69 6e 74 66 28 63 | 6f 6e 73 6f 6c 65 2c 20 |printf(c|onsole, |
|00002230| 22 53 63 68 65 6d 65 20 | 67 72 61 70 68 69 63 73 |"Scheme |graphics|
|00002240| 3a 20 65 72 72 6e 6f 3d | 25 64 5c 6e 22 2c 0a 20 |: errno=|%d\n",. |
|00002250| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 65 72 72 | | err|
|00002260| 6e 6f 29 3b 0a 20 20 20 | 20 20 20 73 63 68 67 72 |no);. | schgr|
|00002270| 61 70 68 5f 65 72 72 6f | 72 28 22 65 72 72 6f 72 |aph_erro|r("error|
|00002280| 20 6f 72 20 65 6f 66 20 | 67 65 74 74 69 6e 67 20 | or eof |getting |
|00002290| 73 65 72 76 65 72 20 6e | 61 6d 65 20 66 72 6f 6d |server n|ame from|
|000022a0| 20 53 63 68 65 6d 61 74 | 69 6b 22 29 3b 0a 20 20 | Schemat|ik");. |
|000022b0| 20 20 7d 0a 20 20 20 20 | 69 66 28 73 65 72 76 65 | }. |if(serve|
|000022c0| 72 4e 61 6d 65 5b 63 3d | 73 74 72 6c 65 6e 28 73 |rName[c=|strlen(s|
|000022d0| 65 72 76 65 72 4e 61 6d | 65 29 2d 31 5d 20 21 3d |erverNam|e)-1] !=|
|000022e0| 20 27 5c 6e 27 29 7b 0a | 20 20 20 20 20 20 4c 45 | '\n'){.| LE|
|000022f0| 41 56 45 5f 41 54 4f 4d | 49 43 3b 0a 20 20 20 20 |AVE_ATOM|IC;. |
|00002300| 20 20 73 63 68 67 72 61 | 70 68 5f 65 72 72 6f 72 | schgra|ph_error|
|00002310| 28 22 73 65 72 76 65 72 | 20 6e 61 6d 65 20 66 72 |("server| name fr|
|00002320| 6f 6d 20 53 63 68 65 6d | 61 74 69 6b 20 69 73 20 |om Schem|atik is |
|00002330| 74 6f 6f 20 6c 6f 6e 67 | 22 29 3b 0a 20 20 20 20 |too long|");. |
|00002340| 7d 0a 20 20 20 20 73 65 | 72 76 65 72 4e 61 6d 65 |}. se|rverName|
|00002350| 5b 63 5d 20 3d 20 27 5c | 30 27 3b 0a 20 20 20 20 |[c] = '\|0';. |
|00002360| 45 4e 44 5f 41 54 4f 4d | 49 43 0a 20 20 20 20 4e |END_ATOM|IC. N|
|00002370| 58 5f 44 55 52 49 4e 47 | 0a 20 20 20 20 63 6f 6e |X_DURING|. con|
|00002380| 74 65 78 74 73 5b 64 65 | 76 69 63 65 5d 20 3d 0a |texts[de|vice] =.|
|00002390| 20 20 20 20 20 20 63 6f | 6e 74 65 78 74 20 3d 20 | co|ntext = |
|000023a0| 44 50 53 43 72 65 61 74 | 65 43 6f 6e 74 65 78 74 |DPSCreat|eContext|
|000023b0| 28 2a 68 6f 73 74 4e 61 | 6d 65 20 3f 20 68 6f 73 |(*hostNa|me ? hos|
|000023c0| 74 4e 61 6d 65 20 3a 20 | 4e 55 4c 4c 2c 0a 20 20 |tName : |NULL,. |
|000023d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000023e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2a | | *|
|000023f0| 73 65 72 76 65 72 4e 61 | 6d 65 20 3f 20 73 65 72 |serverNa|me ? ser|
|00002400| 76 65 72 4e 61 6d 65 20 | 3a 20 4e 55 4c 4c 2c 0a |verName |: NULL,.|
|00002410| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002420| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002430| 20 4d 79 54 65 78 74 50 | 72 6f 63 2c 20 44 50 53 | MyTextP|roc, DPS|
|00002440| 44 65 66 61 75 6c 74 45 | 72 72 6f 72 50 72 6f 63 |DefaultE|rrorProc|
|00002450| 29 3b 0a 20 20 20 20 50 | 53 57 69 6e 69 74 69 61 |);. P|SWinitia|
|00002460| 6c 69 7a 65 28 63 6f 6e | 74 65 78 74 2c 20 77 69 |lize(con|text, wi|
|00002470| 6e 64 6f 77 29 3b 0a 20 | 20 20 20 61 64 6a 75 73 |ndow);. | adjus|
|00002480| 74 43 6f 6f 72 64 69 6e | 61 74 65 73 28 63 6f 6e |tCoordin|ates(con|
|00002490| 74 65 78 74 2c 20 30 2e | 30 2c 20 30 2e 30 2c 20 |text, 0.|0, 0.0, |
|000024a0| 28 66 6c 6f 61 74 29 20 | 77 69 64 74 68 2c 20 28 |(float) |width, (|
|000024b0| 66 6c 6f 61 74 29 20 68 | 65 69 67 68 74 2c 0a 20 |float) h|eight,. |
|000024c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000024d0| 20 20 20 20 20 2d 31 2e | 30 2c 20 2d 31 2e 30 2c | -1.|0, -1.0,|
|000024e0| 20 31 2e 30 2c 20 31 2e | 30 29 3b 0a 20 20 20 20 | 1.0, 1.|0);. |
|000024f0| 48 41 4e 44 4c 45 52 0a | 20 20 20 20 50 52 49 4d |HANDLER.| PRIM|
|00002500| 49 54 49 56 45 5f 52 45 | 54 55 52 4e 20 28 4c 4f |ITIVE_RE|TURN (LO|
|00002510| 4e 47 5f 54 4f 5f 55 4e | 53 49 47 4e 45 44 5f 46 |NG_TO_UN|SIGNED_F|
|00002520| 49 58 4e 55 4d 28 64 65 | 76 69 63 65 29 29 3b 0a |IXNUM(de|vice));.|
|00002530| 20 20 7d 0a 7d 0a 0a 44 | 45 46 49 4e 45 5f 50 52 | }.}..D|EFINE_PR|
|00002540| 49 4d 49 54 49 56 45 20 | 28 22 53 43 48 47 52 41 |IMITIVE |("SCHGRA|
|00002550| 50 48 2d 43 4c 4f 53 45 | 22 2c 20 50 72 69 6d 5f |PH-CLOSE|", Prim_|
|00002560| 73 63 68 67 72 61 70 68 | 5f 63 6c 6f 73 65 2c 20 |schgraph|_close, |
|00002570| 31 2c 20 31 2c 0a 20 22 | 28 53 43 48 47 52 41 50 |1, 1,. "|(SCHGRAP|
|00002580| 48 2d 43 4c 4f 53 45 20 | 57 49 4e 44 4f 57 29 5c |H-CLOSE |WINDOW)\|
|00002590| 6e 5c 0a 43 6c 6f 73 65 | 20 61 20 77 69 6e 64 6f |n\.Close| a windo|
|000025a0| 77 20 73 70 65 63 69 66 | 69 65 64 20 62 79 20 69 |w specif|ied by i|
|000025b0| 64 20 6e 75 6d 62 65 72 | 2e 22 29 0a 7b 0a 20 20 |d number|.").{. |
|000025c0| 50 52 49 4d 49 54 49 56 | 45 5f 48 45 41 44 45 52 |PRIMITIV|E_HEADER|
|000025d0| 20 28 31 29 3b 0a 20 20 | 7b 0a 20 20 20 20 6c 6f | (1);. |{. lo|
|000025e0| 6e 67 20 64 65 76 69 63 | 65 20 3d 20 61 72 67 5f |ng devic|e = arg_|
|000025f0| 64 65 76 69 63 65 28 31 | 29 3b 0a 20 20 20 20 44 |device(1|);. D|
|00002600| 50 53 43 6f 6e 74 65 78 | 74 20 63 6f 6e 74 65 78 |PSContex|t contex|
|00002610| 74 20 3d 20 63 6f 6e 74 | 65 78 74 73 5b 64 65 76 |t = cont|exts[dev|
|00002620| 69 63 65 5d 3b 0a 20 20 | 20 20 4e 58 5f 44 55 52 |ice];. | NX_DUR|
|00002630| 49 4e 47 0a 20 20 20 20 | 44 50 53 44 65 73 74 72 |ING. |DPSDestr|
|00002640| 6f 79 43 6f 6e 74 65 78 | 74 28 63 6f 6e 74 65 78 |oyContex|t(contex|
|00002650| 74 29 3b 0a 20 20 20 20 | 66 70 72 69 6e 74 66 28 |t);. |fprintf(|
|00002660| 67 6f 75 74 2c 20 22 5c | 30 33 33 47 63 25 64 5c |gout, "\|033Gc%d\|
|00002670| 30 33 33 22 2c 20 64 65 | 76 69 63 65 29 3b 0a 20 |033", de|vice);. |
|00002680| 20 20 20 63 6f 6e 74 65 | 78 74 73 5b 64 65 76 69 | conte|xts[devi|
|00002690| 63 65 5d 20 3d 20 4e 55 | 4c 4c 3b 0a 20 20 20 20 |ce] = NU|LL;. |
|000026a0| 63 6f 6e 74 65 78 74 73 | 5f 69 6e 5f 75 73 65 2d |contexts|_in_use-|
|000026b0| 2d 3b 0a 20 20 20 20 48 | 41 4e 44 4c 45 52 0a 20 |-;. H|ANDLER. |
|000026c0| 20 7d 0a 20 20 50 52 49 | 4d 49 54 49 56 45 5f 52 | }. PRI|MITIVE_R|
|000026d0| 45 54 55 52 4e 20 28 55 | 4e 53 50 45 43 49 46 49 |ETURN (U|NSPECIFI|
|000026e0| 43 29 3b 0a 7d 0a 0a 44 | 45 46 49 4e 45 5f 50 52 |C);.}..D|EFINE_PR|
|000026f0| 49 4d 49 54 49 56 45 20 | 28 22 53 43 48 47 52 41 |IMITIVE |("SCHGRA|
|00002700| 50 48 2d 46 4c 55 53 48 | 22 2c 20 50 72 69 6d 5f |PH-FLUSH|", Prim_|
|00002710| 73 63 68 67 72 61 70 68 | 5f 66 6c 75 73 68 2c 20 |schgraph|_flush, |
|00002720| 31 2c 20 31 2c 0a 20 22 | 28 53 43 48 47 52 41 50 |1, 1,. "|(SCHGRAP|
|00002730| 48 2d 46 4c 55 53 48 20 | 57 49 4e 44 4f 57 29 5c |H-FLUSH |WINDOW)\|
|00002740| 6e 5c 0a 46 6c 75 73 68 | 20 61 20 77 69 6e 64 6f |n\.Flush| a windo|
|00002750| 77 20 73 70 65 63 69 66 | 69 65 64 20 62 79 20 69 |w specif|ied by i|
|00002760| 64 20 6e 75 6d 62 65 72 | 2e 22 29 0a 7b 0a 20 20 |d number|.").{. |
|00002770| 50 52 49 4d 49 54 49 56 | 45 5f 48 45 41 44 45 52 |PRIMITIV|E_HEADER|
|00002780| 20 28 31 29 3b 0a 20 20 | 7b 0a 20 20 20 20 6c 6f | (1);. |{. lo|
|00002790| 6e 67 20 64 65 76 69 63 | 65 20 3d 20 61 72 67 5f |ng devic|e = arg_|
|000027a0| 64 65 76 69 63 65 28 31 | 29 3b 0a 20 20 20 20 44 |device(1|);. D|
|000027b0| 50 53 43 6f 6e 74 65 78 | 74 20 63 6f 6e 74 65 78 |PSContex|t contex|
|000027c0| 74 20 3d 20 63 6f 6e 74 | 65 78 74 73 5b 64 65 76 |t = cont|exts[dev|
|000027d0| 69 63 65 5d 3b 0a 20 20 | 20 20 4e 58 5f 44 55 52 |ice];. | NX_DUR|
|000027e0| 49 4e 47 0a 20 20 20 20 | 44 50 53 46 6c 75 73 68 |ING. |DPSFlush|
|000027f0| 43 6f 6e 74 65 78 74 28 | 63 6f 6e 74 65 78 74 29 |Context(|context)|
|00002800| 3b 0a 20 20 20 20 69 66 | 28 21 6f 70 74 69 6d 69 |;. if|(!optimi|
|00002810| 73 74 69 63 29 0a 20 20 | 20 20 20 20 20 20 44 50 |stic). | DP|
|00002820| 53 57 61 69 74 43 6f 6e | 74 65 78 74 28 63 6f 6e |SWaitCon|text(con|
|00002830| 74 65 78 74 29 3b 0a 20 | 20 20 20 66 70 72 69 6e |text);. | fprin|
|00002840| 74 66 28 67 6f 75 74 2c | 20 22 5c 30 33 33 47 66 |tf(gout,| "\033Gf|
|00002850| 25 64 20 33 5c 30 33 33 | 22 2c 20 64 65 76 69 63 |%d 3\033|", devic|
|00002860| 65 29 3b 0a 20 20 20 20 | 48 41 4e 44 4c 45 52 0a |e);. |HANDLER.|
|00002870| 20 20 7d 0a 20 20 50 52 | 49 4d 49 54 49 56 45 5f | }. PR|IMITIVE_|
|00002880| 52 45 54 55 52 4e 20 28 | 55 4e 53 50 45 43 49 46 |RETURN (|UNSPECIF|
|00002890| 49 43 29 3b 0a 7d 0a 0a | 44 45 46 49 4e 45 5f 50 |IC);.}..|DEFINE_P|
|000028a0| 52 49 4d 49 54 49 56 45 | 20 28 22 53 43 48 47 52 |RIMITIVE| ("SCHGR|
|000028b0| 41 50 48 2d 50 52 49 4e | 54 22 2c 20 50 72 69 6d |APH-PRIN|T", Prim|
|000028c0| 5f 73 63 68 67 72 61 70 | 68 5f 70 72 69 6e 74 2c |_schgrap|h_print,|
|000028d0| 20 31 2c 20 31 2c 0a 20 | 22 28 53 43 48 47 52 41 | 1, 1,. |"(SCHGRA|
|000028e0| 50 48 2d 50 52 49 4e 54 | 20 57 49 4e 44 4f 57 29 |PH-PRINT| WINDOW)|
|000028f0| 5c 6e 5c 0a 50 72 69 6e | 74 20 61 20 77 69 6e 64 |\n\.Prin|t a wind|
|00002900| 6f 77 20 73 70 65 63 69 | 66 69 65 64 20 62 79 20 |ow speci|fied by |
|00002910| 69 64 20 6e 75 6d 62 65 | 72 2e 22 29 0a 7b 0a 20 |id numbe|r.").{. |
|00002920| 20 50 52 49 4d 49 54 49 | 56 45 5f 48 45 41 44 45 | PRIMITI|VE_HEADE|
|00002930| 52 20 28 31 29 3b 0a 20 | 20 7b 0a 20 20 20 20 6c |R (1);. | {. l|
|00002940| 6f 6e 67 20 64 65 76 69 | 63 65 20 3d 20 61 72 67 |ong devi|ce = arg|
|00002950| 5f 64 65 76 69 63 65 28 | 31 29 3b 0a 20 20 20 20 |_device(|1);. |
|00002960| 44 50 53 43 6f 6e 74 65 | 78 74 20 63 6f 6e 74 65 |DPSConte|xt conte|
|00002970| 78 74 20 3d 20 63 6f 6e | 74 65 78 74 73 5b 64 65 |xt = con|texts[de|
|00002980| 76 69 63 65 5d 3b 0a 20 | 20 20 20 4e 58 5f 44 55 |vice];. | NX_DU|
|00002990| 52 49 4e 47 0a 20 20 20 | 20 44 50 53 46 6c 75 73 |RING. | DPSFlus|
|000029a0| 68 43 6f 6e 74 65 78 74 | 28 63 6f 6e 74 65 78 74 |hContext|(context|
|000029b0| 29 3b 0a 20 20 20 20 69 | 66 28 21 6f 70 74 69 6d |);. i|f(!optim|
|000029c0| 69 73 74 69 63 29 0a 20 | 20 20 20 20 20 20 20 44 |istic). | D|
|000029d0| 50 53 57 61 69 74 43 6f | 6e 74 65 78 74 28 63 6f |PSWaitCo|ntext(co|
|000029e0| 6e 74 65 78 74 29 3b 0a | 20 20 20 20 66 70 72 69 |ntext);.| fpri|
|000029f0| 6e 74 66 28 67 6f 75 74 | 2c 20 22 5c 30 33 33 47 |ntf(gout|, "\033G|
|00002a00| 70 25 64 5c 30 33 33 22 | 2c 20 64 65 76 69 63 65 |p%d\033"|, device|
|00002a10| 29 3b 0a 20 20 20 20 48 | 41 4e 44 4c 45 52 0a 20 |);. H|ANDLER. |
|00002a20| 20 7d 0a 20 20 50 52 49 | 4d 49 54 49 56 45 5f 52 | }. PRI|MITIVE_R|
|00002a30| 45 54 55 52 4e 20 28 55 | 4e 53 50 45 43 49 46 49 |ETURN (U|NSPECIFI|
|00002a40| 43 29 3b 0a 7d 0a 0a 44 | 45 46 49 4e 45 5f 50 52 |C);.}..D|EFINE_PR|
|00002a50| 49 4d 49 54 49 56 45 20 | 28 22 53 43 48 47 52 41 |IMITIVE |("SCHGRA|
|00002a60| 50 48 2d 43 4c 45 41 52 | 22 2c 20 50 72 69 6d 5f |PH-CLEAR|", Prim_|
|00002a70| 73 63 68 67 72 61 70 68 | 5f 63 6c 65 61 72 2c 20 |schgraph|_clear, |
|00002a80| 31 2c 20 31 2c 0a 20 22 | 28 53 43 48 47 52 41 50 |1, 1,. "|(SCHGRAP|
|00002a90| 48 2d 43 4c 45 41 52 20 | 57 49 4e 44 4f 57 29 5c |H-CLEAR |WINDOW)\|
|00002aa0| 6e 5c 0a 43 6c 65 61 72 | 20 61 20 77 69 6e 64 6f |n\.Clear| a windo|
|00002ab0| 77 2e 22 29 0a 7b 0a 20 | 20 50 52 49 4d 49 54 49 |w.").{. | PRIMITI|
|00002ac0| 56 45 5f 48 45 41 44 45 | 52 20 28 31 29 3b 0a 20 |VE_HEADE|R (1);. |
|00002ad0| 20 7b 0a 20 20 20 20 44 | 50 53 43 6f 6e 74 65 78 | {. D|PSContex|
|00002ae0| 74 20 63 6f 6e 74 65 78 | 74 20 3d 20 61 72 67 5f |t contex|t = arg_|
|00002af0| 63 6f 6e 74 65 78 74 28 | 31 29 3b 0a 20 20 20 20 |context(|1);. |
|00002b00| 4e 58 5f 44 55 52 49 4e | 47 0a 20 20 20 20 50 53 |NX_DURIN|G. PS|
|00002b10| 57 63 6c 65 61 72 28 63 | 6f 6e 74 65 78 74 29 3b |Wclear(c|ontext);|
|00002b20| 0a 20 20 20 20 48 41 4e | 44 4c 45 52 0a 20 20 20 |. HAN|DLER. |
|00002b30| 20 7d 0a 20 20 50 52 49 | 4d 49 54 49 56 45 5f 52 | }. PRI|MITIVE_R|
|00002b40| 45 54 55 52 4e 20 28 55 | 4e 53 50 45 43 49 46 49 |ETURN (U|NSPECIFI|
|00002b50| 43 29 3b 0a 7d 0a 0a 44 | 45 46 49 4e 45 5f 50 52 |C);.}..D|EFINE_PR|
|00002b60| 49 4d 49 54 49 56 45 20 | 28 22 53 43 48 47 52 41 |IMITIVE |("SCHGRA|
|00002b70| 50 48 2d 44 52 41 57 2d | 4c 49 4e 45 22 2c 20 50 |PH-DRAW-|LINE", P|
|00002b80| 72 69 6d 5f 73 63 68 67 | 72 61 70 68 5f 64 72 61 |rim_schg|raph_dra|
|00002b90| 77 5f 6c 69 6e 65 2c 20 | 35 2c 20 35 2c 0a 20 22 |w_line, |5, 5,. "|
|00002ba0| 28 53 43 48 47 52 41 50 | 48 2d 44 52 41 57 2d 4c |(SCHGRAP|H-DRAW-L|
|00002bb0| 49 4e 45 20 57 49 4e 44 | 4f 57 20 58 30 20 59 30 |INE WIND|OW X0 Y0|
|00002bc0| 20 58 31 20 59 31 29 5c | 6e 5c 0a 44 72 61 77 20 | X1 Y1)\|n\.Draw |
|00002bd0| 61 20 6c 69 6e 65 20 66 | 72 6f 6d 20 28 78 30 2c |a line f|rom (x0,|
|00002be0| 79 30 29 20 74 6f 20 28 | 78 31 2c 79 31 29 20 69 |y0) to (|x1,y1) i|
|00002bf0| 6e 20 77 69 6e 64 6f 77 | 2e 22 29 0a 7b 0a 20 20 |n window|.").{. |
|00002c00| 50 52 49 4d 49 54 49 56 | 45 5f 48 45 41 44 45 52 |PRIMITIV|E_HEADER|
|00002c10| 20 28 35 29 3b 0a 20 20 | 7b 0a 20 20 20 20 44 50 | (5);. |{. DP|
|00002c20| 53 43 6f 6e 74 65 78 74 | 20 63 6f 6e 74 65 78 74 |SContext| context|
|00002c30| 20 3d 20 61 72 67 5f 63 | 6f 6e 74 65 78 74 28 31 | = arg_c|ontext(1|
|00002c40| 29 3b 0a 20 20 20 20 4e | 58 5f 44 55 52 49 4e 47 |);. N|X_DURING|
|00002c50| 0a 20 20 20 20 50 53 57 | 64 72 61 77 4c 69 6e 65 |. PSW|drawLine|
|00002c60| 28 63 6f 6e 74 65 78 74 | 2c 20 61 72 67 5f 72 65 |(context|, arg_re|
|00002c70| 61 6c 5f 6e 75 6d 62 65 | 72 28 32 29 2c 20 61 72 |al_numbe|r(2), ar|
|00002c80| 67 5f 72 65 61 6c 5f 6e | 75 6d 62 65 72 28 33 29 |g_real_n|umber(3)|
|00002c90| 2c 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |,. | |
|00002ca0| 20 20 61 72 67 5f 72 65 | 61 6c 5f 6e 75 6d 62 65 | arg_re|al_numbe|
|00002cb0| 72 28 34 29 2c 20 61 72 | 67 5f 72 65 61 6c 5f 6e |r(4), ar|g_real_n|
|00002cc0| 75 6d 62 65 72 28 35 29 | 29 3b 0a 20 20 20 20 48 |umber(5)|);. H|
|00002cd0| 41 4e 44 4c 45 52 0a 20 | 20 20 20 7d 0a 20 20 50 |ANDLER. | }. P|
|00002ce0| 52 49 4d 49 54 49 56 45 | 5f 52 45 54 55 52 4e 20 |RIMITIVE|_RETURN |
|00002cf0| 28 55 4e 53 50 45 43 49 | 46 49 43 29 3b 0a 7d 0a |(UNSPECI|FIC);.}.|
|00002d00| 0a 44 45 46 49 4e 45 5f | 50 52 49 4d 49 54 49 56 |.DEFINE_|PRIMITIV|
|00002d10| 45 20 28 22 53 43 48 47 | 52 41 50 48 2d 44 52 41 |E ("SCHG|RAPH-DRA|
|00002d20| 57 2d 50 4f 49 4e 54 22 | 2c 20 50 72 69 6d 5f 73 |W-POINT"|, Prim_s|
|00002d30| 63 68 67 72 61 70 68 5f | 64 72 61 77 5f 70 6f 69 |chgraph_|draw_poi|
|00002d40| 6e 74 2c 20 33 2c 20 33 | 2c 0a 20 22 28 53 43 48 |nt, 3, 3|,. "(SCH|
|00002d50| 47 52 41 50 48 2d 44 52 | 41 57 2d 50 4f 49 4e 54 |GRAPH-DR|AW-POINT|
|00002d60| 20 57 49 4e 44 4f 57 20 | 58 20 59 29 5c 6e 5c 0a | WINDOW |X Y)\n\.|
|00002d70| 44 72 61 77 20 61 20 70 | 6f 69 6e 74 20 61 74 20 |Draw a p|oint at |
|00002d80| 28 78 2c 79 29 20 69 6e | 20 77 69 6e 64 6f 77 2e |(x,y) in| window.|
|00002d90| 22 29 0a 7b 0a 20 20 50 | 52 49 4d 49 54 49 56 45 |").{. P|RIMITIVE|
|00002da0| 5f 48 45 41 44 45 52 20 | 28 33 29 3b 0a 20 20 7b |_HEADER |(3);. {|
|00002db0| 0a 20 20 20 20 44 50 53 | 43 6f 6e 74 65 78 74 20 |. DPS|Context |
|00002dc0| 63 6f 6e 74 65 78 74 20 | 3d 20 61 72 67 5f 63 6f |context |= arg_co|
|00002dd0| 6e 74 65 78 74 28 31 29 | 3b 0a 20 20 20 20 4e 58 |ntext(1)|;. NX|
|00002de0| 5f 44 55 52 49 4e 47 0a | 20 20 20 20 50 53 57 64 |_DURING.| PSWd|
|00002df0| 72 61 77 50 6f 69 6e 74 | 28 63 6f 6e 74 65 78 74 |rawPoint|(context|
|00002e00| 2c 20 61 72 67 5f 72 65 | 61 6c 5f 6e 75 6d 62 65 |, arg_re|al_numbe|
|00002e10| 72 28 32 29 2c 20 61 72 | 67 5f 72 65 61 6c 5f 6e |r(2), ar|g_real_n|
|00002e20| 75 6d 62 65 72 28 33 29 | 29 3b 0a 20 20 20 20 48 |umber(3)|);. H|
|00002e30| 41 4e 44 4c 45 52 0a 20 | 20 20 20 7d 0a 20 20 50 |ANDLER. | }. P|
|00002e40| 52 49 4d 49 54 49 56 45 | 5f 52 45 54 55 52 4e 20 |RIMITIVE|_RETURN |
|00002e50| 28 55 4e 53 50 45 43 49 | 46 49 43 29 3b 0a 7d 0a |(UNSPECI|FIC);.}.|
|00002e60| 0a 44 45 46 49 4e 45 5f | 50 52 49 4d 49 54 49 56 |.DEFINE_|PRIMITIV|
|00002e70| 45 20 28 22 53 43 48 47 | 52 41 50 48 2d 44 52 41 |E ("SCHG|RAPH-DRA|
|00002e80| 57 2d 50 4f 53 54 53 43 | 52 49 50 54 22 2c 20 50 |W-POSTSC|RIPT", P|
|00002e90| 72 69 6d 5f 73 63 68 67 | 72 61 70 68 5f 64 72 61 |rim_schg|raph_dra|
|00002ea0| 77 5f 70 6f 73 74 73 63 | 72 69 70 74 2c 0a 20 20 |w_postsc|ript,. |
|00002eb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002ec0| 32 2c 20 32 2c 0a 20 22 | 28 53 43 48 47 52 41 50 |2, 2,. "|(SCHGRAP|
|00002ed0| 48 2d 44 52 41 57 2d 50 | 4f 53 54 53 43 52 49 50 |H-DRAW-P|OSTSCRIP|
|00002ee0| 54 20 57 49 4e 44 4f 57 | 20 53 54 52 49 4e 47 29 |T WINDOW| STRING)|
|00002ef0| 5c 6e 5c 0a 45 6d 69 74 | 20 61 72 62 69 74 72 61 |\n\.Emit| arbitra|
|00002f00| 72 79 20 70 6f 73 74 73 | 63 72 69 70 74 20 74 6f |ry posts|cript to|
|00002f10| 20 77 69 6e 64 6f 77 2e | 22 29 0a 7b 0a 20 20 50 | window.|").{. P|
|00002f20| 52 49 4d 49 54 49 56 45 | 5f 48 45 41 44 45 52 20 |RIMITIVE|_HEADER |
|00002f30| 28 32 29 3b 0a 20 20 7b | 0a 20 20 20 20 44 50 53 |(2);. {|. DPS|
|00002f40| 43 6f 6e 74 65 78 74 20 | 63 6f 6e 74 65 78 74 20 |Context |context |
|00002f50| 3d 20 61 72 67 5f 63 6f | 6e 74 65 78 74 28 31 29 |= arg_co|ntext(1)|
|00002f60| 3b 0a 20 20 20 20 4e 58 | 5f 44 55 52 49 4e 47 0a |;. NX|_DURING.|
|00002f70| 20 20 20 20 44 50 53 57 | 72 69 74 65 50 6f 73 74 | DPSW|ritePost|
|00002f80| 53 63 72 69 70 74 28 63 | 6f 6e 74 65 78 74 2c 20 |Script(c|ontext, |
|00002f90| 53 54 52 49 4e 47 5f 41 | 52 47 28 32 29 2c 20 53 |STRING_A|RG(2), S|
|00002fa0| 54 52 49 4e 47 5f 4c 45 | 4e 47 54 48 28 41 52 47 |TRING_LE|NGTH(ARG|
|00002fb0| 5f 52 45 46 28 32 29 29 | 29 3b 0a 20 20 20 20 69 |_REF(2))|);. i|
|00002fc0| 66 28 21 6e 6f 53 70 61 | 63 65 29 0a 20 20 20 20 |f(!noSpa|ce). |
|00002fd0| 20 20 44 50 53 57 72 69 | 74 65 50 6f 73 74 53 63 | DPSWri|tePostSc|
|00002fe0| 72 69 70 74 28 63 6f 6e | 74 65 78 74 2c 20 22 20 |ript(con|text, " |
|00002ff0| 22 2c 20 31 29 3b 0a 20 | 20 20 20 48 41 4e 44 4c |", 1);. | HANDL|
|00003000| 45 52 0a 20 20 7d 0a 20 | 20 50 52 49 4d 49 54 49 |ER. }. | PRIMITI|
|00003010| 56 45 5f 52 45 54 55 52 | 4e 20 28 55 4e 53 50 45 |VE_RETUR|N (UNSPE|
|00003020| 43 49 46 49 43 29 3b 0a | 7d 0a 0a 44 45 46 49 4e |CIFIC);.|}..DEFIN|
|00003030| 45 5f 50 52 49 4d 49 54 | 49 56 45 20 28 22 53 43 |E_PRIMIT|IVE ("SC|
|00003040| 48 47 52 41 50 48 2d 44 | 52 41 57 2d 54 45 58 54 |HGRAPH-D|RAW-TEXT|
|00003050| 22 2c 20 50 72 69 6d 5f | 73 63 68 67 72 61 70 68 |", Prim_|schgraph|
|00003060| 5f 64 72 61 77 5f 74 65 | 78 74 2c 20 34 2c 20 34 |_draw_te|xt, 4, 4|
|00003070| 2c 0a 20 22 28 53 43 48 | 47 52 41 50 48 2d 44 52 |,. "(SCH|GRAPH-DR|
|00003080| 41 57 2d 54 45 58 54 20 | 57 49 4e 44 4f 57 20 58 |AW-TEXT |WINDOW X|
|00003090| 20 59 20 53 54 52 49 4e | 47 29 5c 6e 5c 0a 44 72 | Y STRIN|G)\n\.Dr|
|000030a0| 61 77 20 74 68 65 20 74 | 65 78 74 20 73 74 72 69 |aw the t|ext stri|
|000030b0| 6e 67 20 61 74 20 28 78 | 2c 79 29 20 69 6e 20 20 |ng at (x|,y) in |
|000030c0| 77 69 6e 64 6f 77 2e 22 | 29 0a 7b 0a 20 20 50 52 |window."|).{. PR|
|000030d0| 49 4d 49 54 49 56 45 5f | 48 45 41 44 45 52 20 28 |IMITIVE_|HEADER (|
|000030e0| 34 29 3b 0a 20 20 7b 0a | 20 20 20 20 44 50 53 43 |4);. {.| DPSC|
|000030f0| 6f 6e 74 65 78 74 20 63 | 6f 6e 74 65 78 74 20 3d |ontext c|ontext =|
|00003100| 20 61 72 67 5f 63 6f 6e | 74 65 78 74 28 31 29 3b | arg_con|text(1);|
|00003110| 0a 20 20 20 20 4e 58 5f | 44 55 52 49 4e 47 0a 20 |. NX_|DURING. |
|00003120| 20 20 20 50 53 57 64 72 | 61 77 54 65 78 74 28 63 | PSWdr|awText(c|
|00003130| 6f 6e 74 65 78 74 2c 0a | 20 20 20 20 20 20 20 20 |ontext,.| |
|00003140| 20 20 20 20 20 20 20 20 | 61 72 67 5f 72 65 61 6c | |arg_real|
|00003150| 5f 6e 75 6d 62 65 72 28 | 32 29 2c 20 61 72 67 5f |_number(|2), arg_|
|00003160| 72 65 61 6c 5f 6e 75 6d | 62 65 72 28 33 29 2c 20 |real_num|ber(3), |
|00003170| 53 54 52 49 4e 47 5f 41 | 52 47 28 34 29 29 3b 0a |STRING_A|RG(4));.|
|00003180| 20 20 20 20 48 41 4e 44 | 4c 45 52 0a 20 20 20 20 | HAND|LER. |
|00003190| 7d 0a 20 20 50 52 49 4d | 49 54 49 56 45 5f 52 45 |}. PRIM|ITIVE_RE|
|000031a0| 54 55 52 4e 20 28 55 4e | 53 50 45 43 49 46 49 43 |TURN (UN|SPECIFIC|
|000031b0| 29 3b 0a 7d 0a 0a 44 45 | 46 49 4e 45 5f 50 52 49 |);.}..DE|FINE_PRI|
|000031c0| 4d 49 54 49 56 45 20 28 | 22 53 43 48 47 52 41 50 |MITIVE (|"SCHGRAP|
|000031d0| 48 2d 52 45 53 45 54 2d | 43 4c 49 50 2d 52 45 43 |H-RESET-|CLIP-REC|
|000031e0| 54 41 4e 47 4c 45 22 2c | 0a 20 20 20 20 20 20 20 |TANGLE",|. |
|000031f0| 20 20 20 20 20 20 20 20 | 20 20 20 50 72 69 6d 5f | | Prim_|
|00003200| 73 63 68 67 72 61 70 68 | 5f 72 65 73 65 74 5f 63 |schgraph|_reset_c|
|00003210| 6c 69 70 5f 72 65 63 74 | 61 6e 67 6c 65 2c 20 31 |lip_rect|angle, 1|
|00003220| 2c 20 31 2c 0a 20 22 28 | 53 43 48 47 52 41 50 48 |, 1,. "(|SCHGRAPH|
|00003230| 2d 52 45 53 45 54 2d 43 | 4c 49 50 2d 52 45 43 54 |-RESET-C|LIP-RECT|
|00003240| 41 4e 47 4c 45 20 57 49 | 4e 44 4f 57 29 5c 6e 5c |ANGLE WI|NDOW)\n\|
|00003250| 0a 43 6c 69 70 20 6f 6e | 6c 79 20 74 6f 20 62 6f |.Clip on|ly to bo|
|00003260| 75 6e 64 61 72 69 65 73 | 20 6f 66 20 77 69 6e 64 |undaries| of wind|
|00003270| 6f 77 2e 22 29 0a 7b 0a | 20 20 50 52 49 4d 49 54 |ow.").{.| PRIMIT|
|00003280| 49 56 45 5f 48 45 41 44 | 45 52 20 28 31 29 3b 0a |IVE_HEAD|ER (1);.|
|00003290| 20 20 7b 0a 20 20 20 20 | 44 50 53 43 6f 6e 74 65 | {. |DPSConte|
|000032a0| 78 74 20 63 6f 6e 74 65 | 78 74 20 3d 20 61 72 67 |xt conte|xt = arg|
|000032b0| 5f 63 6f 6e 74 65 78 74 | 28 31 29 3b 0a 20 20 20 |_context|(1);. |
|000032c0| 20 4e 58 5f 44 55 52 49 | 4e 47 0a 20 20 20 20 44 | NX_DURI|NG. D|
|000032d0| 50 53 69 6e 69 74 63 6c | 69 70 28 63 6f 6e 74 65 |PSinitcl|ip(conte|
|000032e0| 78 74 29 3b 0a 20 20 20 | 20 48 41 4e 44 4c 45 52 |xt);. | HANDLER|
|000032f0| 0a 20 20 20 20 7d 0a 20 | 20 50 52 49 4d 49 54 49 |. }. | PRIMITI|
|00003300| 56 45 5f 52 45 54 55 52 | 4e 20 28 55 4e 53 50 45 |VE_RETUR|N (UNSPE|
|00003310| 43 49 46 49 43 29 3b 0a | 7d 0a 0a 44 45 46 49 4e |CIFIC);.|}..DEFIN|
|00003320| 45 5f 50 52 49 4d 49 54 | 49 56 45 20 28 22 53 43 |E_PRIMIT|IVE ("SC|
|00003330| 48 47 52 41 50 48 2d 53 | 45 54 2d 43 4c 49 50 2d |HGRAPH-S|ET-CLIP-|
|00003340| 52 45 43 54 41 4e 47 4c | 45 22 2c 0a 20 20 20 20 |RECTANGL|E",. |
|00003350| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 50 72 | | Pr|
|00003360| 69 6d 5f 73 63 68 67 72 | 61 70 68 5f 73 65 74 5f |im_schgr|aph_set_|
|00003370| 63 6c 69 70 5f 72 65 63 | 74 61 6e 67 6c 65 2c 20 |clip_rec|tangle, |
|00003380| 35 2c 20 35 2c 0a 20 22 | 28 53 43 48 47 52 41 50 |5, 5,. "|(SCHGRAP|
|00003390| 48 2d 53 45 54 2d 43 4c | 49 50 2d 52 45 43 54 41 |H-SET-CL|IP-RECTA|
|000033a0| 4e 47 4c 45 20 57 49 4e | 44 4f 57 20 58 4c 20 59 |NGLE WIN|DOW XL Y|
|000033b0| 42 20 58 52 20 59 54 29 | 5c 6e 5c 0a 43 6c 69 70 |B XR YT)|\n\.Clip|
|000033c0| 20 74 6f 20 72 65 63 74 | 61 6e 67 6c 65 20 77 69 | to rect|angle wi|
|000033d0| 74 68 20 63 6f 72 6e 65 | 72 73 20 28 78 6c 2c 79 |th corne|rs (xl,y|
|000033e0| 62 29 20 61 6e 64 20 28 | 78 72 2c 79 74 29 20 69 |b) and (|xr,yt) i|
|000033f0| 6e 20 77 69 6e 64 6f 77 | 2e 22 29 0a 7b 0a 20 20 |n window|.").{. |
|00003400| 50 52 49 4d 49 54 49 56 | 45 5f 48 45 41 44 45 52 |PRIMITIV|E_HEADER|
|00003410| 20 28 35 29 3b 0a 20 20 | 7b 0a 20 20 20 20 44 50 | (5);. |{. DP|
|00003420| 53 43 6f 6e 74 65 78 74 | 20 63 6f 6e 74 65 78 74 |SContext| context|
|00003430| 20 3d 20 61 72 67 5f 63 | 6f 6e 74 65 78 74 28 31 | = arg_c|ontext(1|
|00003440| 29 3b 0a 20 20 20 20 4e | 58 5f 44 55 52 49 4e 47 |);. N|X_DURING|
|00003450| 0a 20 20 20 20 50 53 57 | 73 65 74 43 6c 69 70 52 |. PSW|setClipR|
|00003460| 65 63 74 61 6e 67 6c 65 | 28 63 6f 6e 74 65 78 74 |ectangle|(context|
|00003470| 2c 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |,. | |
|00003480| 20 20 20 20 20 20 20 20 | 20 20 61 72 67 5f 72 65 | | arg_re|
|00003490| 61 6c 5f 6e 75 6d 62 65 | 72 28 32 29 2c 20 61 72 |al_numbe|r(2), ar|
|000034a0| 67 5f 72 65 61 6c 5f 6e | 75 6d 62 65 72 28 33 29 |g_real_n|umber(3)|
|000034b0| 2c 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |,. | |
|000034c0| 20 20 20 20 20 20 20 20 | 20 20 61 72 67 5f 72 65 | | arg_re|
|000034d0| 61 6c 5f 6e 75 6d 62 65 | 72 28 34 29 2c 20 61 72 |al_numbe|r(4), ar|
|000034e0| 67 5f 72 65 61 6c 5f 6e | 75 6d 62 65 72 28 35 29 |g_real_n|umber(5)|
|000034f0| 29 3b 0a 20 20 20 20 48 | 41 4e 44 4c 45 52 0a 20 |);. H|ANDLER. |
|00003500| 20 20 20 7d 0a 20 20 50 | 52 49 4d 49 54 49 56 45 | }. P|RIMITIVE|
|00003510| 5f 52 45 54 55 52 4e 20 | 28 55 4e 53 50 45 43 49 |_RETURN |(UNSPECI|
|00003520| 46 49 43 29 3b 0a 7d 0a | 0a 44 45 46 49 4e 45 5f |FIC);.}.|.DEFINE_|
|00003530| 50 52 49 4d 49 54 49 56 | 45 20 28 22 53 43 48 47 |PRIMITIV|E ("SCHG|
|00003540| 52 41 50 48 2d 53 45 54 | 2d 46 4f 52 45 47 52 4f |RAPH-SET|-FOREGRO|
|00003550| 55 4e 44 2d 48 53 42 22 | 2c 0a 20 20 20 20 20 20 |UND-HSB"|,. |
|00003560| 20 20 20 20 20 20 20 20 | 20 20 20 20 50 72 69 6d | | Prim|
|00003570| 5f 73 63 68 67 72 61 70 | 68 5f 73 65 74 5f 66 6f |_schgrap|h_set_fo|
|00003580| 72 65 67 72 6f 75 6e 64 | 5f 68 73 62 2c 20 34 2c |reground|_hsb, 4,|
|00003590| 20 34 2c 0a 20 22 28 53 | 43 48 47 52 41 50 48 2d | 4,. "(S|CHGRAPH-|
|000035a0| 53 45 54 2d 46 4f 52 45 | 47 52 4f 55 4e 44 2d 48 |SET-FORE|GROUND-H|
|000035b0| 53 42 20 57 49 4e 44 4f | 57 20 48 20 53 20 42 29 |SB WINDO|W H S B)|
|000035c0| 5c 6e 5c 0a 53 65 74 73 | 20 74 68 65 20 66 6f 72 |\n\.Sets| the for|
|000035d0| 65 67 72 6f 75 6e 64 20 | 68 75 65 2f 73 61 74 75 |eground |hue/satu|
|000035e0| 72 61 74 69 6f 6e 2f 62 | 72 69 67 68 74 6e 65 73 |ration/b|rightnes|
|000035f0| 73 20 66 6f 72 20 77 69 | 6e 64 6f 77 3b 20 30 20 |s for wi|ndow; 0 |
|00003600| 3c 3d 20 48 2c 53 2c 42 | 20 3c 3d 20 31 2e 22 29 |<= H,S,B| <= 1.")|
|00003610| 0a 7b 0a 20 20 50 52 49 | 4d 49 54 49 56 45 5f 48 |.{. PRI|MITIVE_H|
|00003620| 45 41 44 45 52 20 28 34 | 29 3b 0a 20 20 7b 0a 20 |EADER (4|);. {. |
|00003630| 20 20 20 44 50 53 43 6f | 6e 74 65 78 74 20 63 6f | DPSCo|ntext co|
|00003640| 6e 74 65 78 74 20 3d 20 | 61 72 67 5f 63 6f 6e 74 |ntext = |arg_cont|
|00003650| 65 78 74 28 31 29 3b 0a | 20 20 20 20 4e 58 5f 44 |ext(1);.| NX_D|
|00003660| 55 52 49 4e 47 0a 20 20 | 20 20 50 53 57 73 65 74 |URING. | PSWset|
|00003670| 46 6f 72 65 67 72 6f 75 | 6e 64 48 53 42 28 63 6f |Foregrou|ndHSB(co|
|00003680| 6e 74 65 78 74 2c 20 61 | 72 67 5f 72 65 61 6c 5f |ntext, a|rg_real_|
|00003690| 69 6e 5f 72 61 6e 67 65 | 28 32 2c 20 30 2e 30 2c |in_range|(2, 0.0,|
|000036a0| 20 31 2e 30 29 2c 0a 20 | 20 20 20 20 20 20 20 20 | 1.0),. | |
|000036b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 61 | | a|
|000036c0| 72 67 5f 72 65 61 6c 5f | 69 6e 5f 72 61 6e 67 65 |rg_real_|in_range|
|000036d0| 28 33 2c 20 30 2e 30 2c | 20 31 2e 30 29 2c 0a 20 |(3, 0.0,| 1.0),. |
|000036e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000036f0| 20 20 20 20 20 20 20 61 | 72 67 5f 72 65 61 6c 5f | a|rg_real_|
|00003700| 69 6e 5f 72 61 6e 67 65 | 28 34 2c 20 30 2e 30 2c |in_range|(4, 0.0,|
|00003710| 20 31 2e 30 29 29 3b 0a | 20 20 20 20 48 41 4e 44 | 1.0));.| HAND|
|00003720| 4c 45 52 0a 20 20 20 20 | 7d 0a 20 20 50 52 49 4d |LER. |}. PRIM|
|00003730| 49 54 49 56 45 5f 52 45 | 54 55 52 4e 20 28 55 4e |ITIVE_RE|TURN (UN|
|00003740| 53 50 45 43 49 46 49 43 | 29 3b 0a 7d 0a 0a 44 45 |SPECIFIC|);.}..DE|
|00003750| 46 49 4e 45 5f 50 52 49 | 4d 49 54 49 56 45 20 28 |FINE_PRI|MITIVE (|
|00003760| 22 53 43 48 47 52 41 50 | 48 2d 53 45 54 2d 46 4f |"SCHGRAP|H-SET-FO|
|00003770| 52 45 47 52 4f 55 4e 44 | 2d 52 47 42 22 2c 0a 20 |REGROUND|-RGB",. |
|00003780| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003790| 20 50 72 69 6d 5f 73 63 | 68 67 72 61 70 68 5f 73 | Prim_sc|hgraph_s|
|000037a0| 65 74 5f 66 6f 72 65 67 | 72 6f 75 6e 64 5f 72 67 |et_foreg|round_rg|
|000037b0| 62 2c 20 34 2c 20 34 2c | 0a 20 22 28 53 43 48 47 |b, 4, 4,|. "(SCHG|
|000037c0| 52 41 50 48 2d 53 45 54 | 2d 46 4f 52 45 47 52 4f |RAPH-SET|-FOREGRO|
|000037d0| 55 4e 44 2d 52 47 42 20 | 57 49 4e 44 4f 57 20 52 |UND-RGB |WINDOW R|
|000037e0| 20 47 20 42 29 5c 6e 5c | 0a 53 65 74 73 20 74 68 | G B)\n\|.Sets th|
|000037f0| 65 20 66 6f 72 65 67 72 | 6f 75 6e 64 20 72 65 64 |e foregr|ound red|
|00003800| 2f 67 72 65 65 6e 2f 62 | 6c 75 65 20 66 6f 72 20 |/green/b|lue for |
|00003810| 77 69 6e 64 6f 77 3b 20 | 30 20 3c 3d 20 52 2c 47 |window; |0 <= R,G|
|00003820| 2c 42 20 3c 3d 20 31 2e | 22 29 0a 7b 0a 20 20 50 |,B <= 1.|").{. P|
|00003830| 52 49 4d 49 54 49 56 45 | 5f 48 45 41 44 45 52 20 |RIMITIVE|_HEADER |
|00003840| 28 34 29 3b 0a 20 20 7b | 0a 20 20 20 20 44 50 53 |(4);. {|. DPS|
|00003850| 43 6f 6e 74 65 78 74 20 | 63 6f 6e 74 65 78 74 20 |Context |context |
|00003860| 3d 20 61 72 67 5f 63 6f | 6e 74 65 78 74 28 31 29 |= arg_co|ntext(1)|
|00003870| 3b 0a 20 20 20 20 4e 58 | 5f 44 55 52 49 4e 47 0a |;. NX|_DURING.|
|00003880| 20 20 20 20 50 53 57 73 | 65 74 46 6f 72 65 67 72 | PSWs|etForegr|
|00003890| 6f 75 6e 64 52 47 42 28 | 63 6f 6e 74 65 78 74 2c |oundRGB(|context,|
|000038a0| 20 61 72 67 5f 72 65 61 | 6c 5f 69 6e 5f 72 61 6e | arg_rea|l_in_ran|
|000038b0| 67 65 28 32 2c 20 30 2e | 30 2c 20 31 2e 30 29 2c |ge(2, 0.|0, 1.0),|
|000038c0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000038d0| 20 20 20 20 20 20 20 20 | 20 61 72 67 5f 72 65 61 | | arg_rea|
|000038e0| 6c 5f 69 6e 5f 72 61 6e | 67 65 28 33 2c 20 30 2e |l_in_ran|ge(3, 0.|
|000038f0| 30 2c 20 31 2e 30 29 2c | 0a 20 20 20 20 20 20 20 |0, 1.0),|. |
|00003900| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003910| 20 61 72 67 5f 72 65 61 | 6c 5f 69 6e 5f 72 61 6e | arg_rea|l_in_ran|
|00003920| 67 65 28 34 2c 20 30 2e | 30 2c 20 31 2e 30 29 29 |ge(4, 0.|0, 1.0))|
|00003930| 3b 0a 20 20 20 20 48 41 | 4e 44 4c 45 52 0a 20 20 |;. HA|NDLER. |
|00003940| 20 20 7d 0a 20 20 50 52 | 49 4d 49 54 49 56 45 5f | }. PR|IMITIVE_|
|00003950| 52 45 54 55 52 4e 20 28 | 55 4e 53 50 45 43 49 46 |RETURN (|UNSPECIF|
|00003960| 49 43 29 3b 0a 7d 0a 0a | 44 45 46 49 4e 45 5f 50 |IC);.}..|DEFINE_P|
|00003970| 52 49 4d 49 54 49 56 45 | 20 28 22 53 43 48 47 52 |RIMITIVE| ("SCHGR|
|00003980| 41 50 48 2d 53 45 54 2d | 46 4f 52 45 47 52 4f 55 |APH-SET-|FOREGROU|
|00003990| 4e 44 2d 47 52 41 59 22 | 2c 0a 20 20 20 20 20 20 |ND-GRAY"|,. |
|000039a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 50 72 69 6d | | Prim|
|000039b0| 5f 73 63 68 67 72 61 70 | 68 5f 73 65 74 5f 66 6f |_schgrap|h_set_fo|
|000039c0| 72 65 67 6f 75 6e 64 5f | 67 72 61 79 2c 20 32 2c |regound_|gray, 2,|
|000039d0| 20 32 2c 0a 20 22 28 53 | 43 48 47 52 41 50 48 2d | 2,. "(S|CHGRAPH-|
|000039e0| 53 45 54 2d 46 4f 52 45 | 47 52 4f 55 4e 44 2d 47 |SET-FORE|GROUND-G|
|000039f0| 52 41 59 20 57 49 4e 44 | 4f 57 20 47 52 41 59 29 |RAY WIND|OW GRAY)|
|00003a00| 5c 6e 5c 0a 53 65 74 73 | 20 74 68 65 20 66 6f 72 |\n\.Sets| the for|
|00003a10| 65 67 72 6f 75 6e 64 20 | 67 72 61 79 20 66 6f 72 |eground |gray for|
|00003a20| 20 77 69 6e 64 6f 77 3b | 20 30 20 3c 3d 20 67 72 | window;| 0 <= gr|
|00003a30| 61 79 20 3c 3d 20 31 2e | 22 29 0a 7b 0a 20 20 50 |ay <= 1.|").{. P|
|00003a40| 52 49 4d 49 54 49 56 45 | 5f 48 45 41 44 45 52 20 |RIMITIVE|_HEADER |
|00003a50| 28 32 29 3b 0a 20 20 7b | 0a 20 20 20 20 44 50 53 |(2);. {|. DPS|
|00003a60| 43 6f 6e 74 65 78 74 20 | 63 6f 6e 74 65 78 74 20 |Context |context |
|00003a70| 3d 20 61 72 67 5f 63 6f | 6e 74 65 78 74 28 31 29 |= arg_co|ntext(1)|
|00003a80| 3b 0a 20 20 20 20 4e 58 | 5f 44 55 52 49 4e 47 0a |;. NX|_DURING.|
|00003a90| 20 20 20 20 50 53 57 73 | 65 74 46 6f 72 65 67 72 | PSWs|etForegr|
|00003aa0| 6f 75 6e 64 47 72 61 79 | 28 63 6f 6e 74 65 78 74 |oundGray|(context|
|00003ab0| 2c 20 61 72 67 5f 72 65 | 61 6c 5f 69 6e 5f 72 61 |, arg_re|al_in_ra|
|00003ac0| 6e 67 65 28 32 2c 20 30 | 2e 30 2c 20 31 2e 30 29 |nge(2, 0|.0, 1.0)|
|00003ad0| 29 3b 0a 20 20 20 20 48 | 41 4e 44 4c 45 52 0a 20 |);. H|ANDLER. |
|00003ae0| 20 20 20 7d 0a 20 20 50 | 52 49 4d 49 54 49 56 45 | }. P|RIMITIVE|
|00003af0| 5f 52 45 54 55 52 4e 20 | 28 55 4e 53 50 45 43 49 |_RETURN |(UNSPECI|
|00003b00| 46 49 43 29 3b 0a 7d 0a | 0a 44 45 46 49 4e 45 5f |FIC);.}.|.DEFINE_|
|00003b10| 50 52 49 4d 49 54 49 56 | 45 20 28 22 53 43 48 47 |PRIMITIV|E ("SCHG|
|00003b20| 52 41 50 48 2d 53 45 54 | 2d 42 41 43 4b 47 52 4f |RAPH-SET|-BACKGRO|
|00003b30| 55 4e 44 2d 48 53 42 22 | 2c 0a 20 20 20 20 20 20 |UND-HSB"|,. |
|00003b40| 20 20 20 20 20 20 20 20 | 20 20 20 20 50 72 69 6d | | Prim|
|00003b50| 5f 73 63 68 67 72 61 70 | 68 5f 73 65 74 5f 62 61 |_schgrap|h_set_ba|
|00003b60| 63 6b 67 72 6f 75 6e 64 | 5f 68 73 62 2c 20 34 2c |ckground|_hsb, 4,|
|00003b70| 20 34 2c 0a 20 22 28 53 | 43 48 47 52 41 50 48 2d | 4,. "(S|CHGRAPH-|
|00003b80| 53 45 54 2d 42 41 43 4b | 47 52 4f 55 4e 44 2d 48 |SET-BACK|GROUND-H|
|00003b90| 53 42 20 57 49 4e 44 4f | 57 20 48 20 53 20 42 29 |SB WINDO|W H S B)|
|00003ba0| 5c 6e 5c 0a 53 65 74 73 | 20 74 68 65 20 62 61 63 |\n\.Sets| the bac|
|00003bb0| 6b 67 72 6f 75 6e 64 20 | 68 75 65 2f 73 61 74 75 |kground |hue/satu|
|00003bc0| 72 61 74 69 6f 6e 2f 62 | 72 69 67 68 74 6e 65 73 |ration/b|rightnes|
|00003bd0| 73 20 66 6f 72 20 77 69 | 6e 64 6f 77 3b 20 30 20 |s for wi|ndow; 0 |
|00003be0| 3c 3d 20 48 2c 53 2c 42 | 20 3c 3d 20 31 2e 22 29 |<= H,S,B| <= 1.")|
|00003bf0| 0a 7b 0a 20 20 50 52 49 | 4d 49 54 49 56 45 5f 48 |.{. PRI|MITIVE_H|
|00003c00| 45 41 44 45 52 20 28 34 | 29 3b 0a 20 20 7b 0a 20 |EADER (4|);. {. |
|00003c10| 20 20 20 44 50 53 43 6f | 6e 74 65 78 74 20 63 6f | DPSCo|ntext co|
|00003c20| 6e 74 65 78 74 20 3d 20 | 61 72 67 5f 63 6f 6e 74 |ntext = |arg_cont|
|00003c30| 65 78 74 28 31 29 3b 0a | 20 20 20 20 4e 58 5f 44 |ext(1);.| NX_D|
|00003c40| 55 52 49 4e 47 0a 20 20 | 20 20 50 53 57 73 65 74 |URING. | PSWset|
|00003c50| 42 61 63 6b 67 72 6f 75 | 6e 64 48 53 42 28 63 6f |Backgrou|ndHSB(co|
|00003c60| 6e 74 65 78 74 2c 20 61 | 72 67 5f 72 65 61 6c 5f |ntext, a|rg_real_|
|00003c70| 69 6e 5f 72 61 6e 67 65 | 28 32 2c 20 30 2e 30 2c |in_range|(2, 0.0,|
|00003c80| 20 31 2e 30 29 2c 0a 20 | 20 20 20 20 20 20 20 20 | 1.0),. | |
|00003c90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 61 | | a|
|00003ca0| 72 67 5f 72 65 61 6c 5f | 69 6e 5f 72 61 6e 67 65 |rg_real_|in_range|
|00003cb0| 28 33 2c 20 30 2e 30 2c | 20 31 2e 30 29 2c 0a 20 |(3, 0.0,| 1.0),. |
|00003cc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003cd0| 20 20 20 20 20 20 20 61 | 72 67 5f 72 65 61 6c 5f | a|rg_real_|
|00003ce0| 69 6e 5f 72 61 6e 67 65 | 28 34 2c 20 30 2e 30 2c |in_range|(4, 0.0,|
|00003cf0| 20 31 2e 30 29 29 3b 0a | 20 20 20 20 48 41 4e 44 | 1.0));.| HAND|
|00003d00| 4c 45 52 0a 20 20 20 20 | 7d 0a 20 20 50 52 49 4d |LER. |}. PRIM|
|00003d10| 49 54 49 56 45 5f 52 45 | 54 55 52 4e 20 28 55 4e |ITIVE_RE|TURN (UN|
|00003d20| 53 50 45 43 49 46 49 43 | 29 3b 0a 7d 0a 0a 44 45 |SPECIFIC|);.}..DE|
|00003d30| 46 49 4e 45 5f 50 52 49 | 4d 49 54 49 56 45 20 28 |FINE_PRI|MITIVE (|
|00003d40| 22 53 43 48 47 52 41 50 | 48 2d 53 45 54 2d 42 41 |"SCHGRAP|H-SET-BA|
|00003d50| 43 4b 47 52 4f 55 4e 44 | 2d 52 47 42 22 2c 0a 20 |CKGROUND|-RGB",. |
|00003d60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003d70| 20 50 72 69 6d 5f 73 63 | 68 67 72 61 70 68 5f 73 | Prim_sc|hgraph_s|
|00003d80| 65 74 5f 62 61 63 6b 67 | 72 6f 75 6e 64 5f 72 67 |et_backg|round_rg|
|00003d90| 62 2c 20 34 2c 20 34 2c | 0a 20 22 28 53 43 48 47 |b, 4, 4,|. "(SCHG|
|00003da0| 52 41 50 48 2d 53 45 54 | 2d 42 41 43 4b 47 52 4f |RAPH-SET|-BACKGRO|
|00003db0| 55 4e 44 2d 52 47 42 20 | 57 49 4e 44 4f 57 20 52 |UND-RGB |WINDOW R|
|00003dc0| 20 47 20 42 29 5c 6e 5c | 0a 53 65 74 73 20 74 68 | G B)\n\|.Sets th|
|00003dd0| 65 20 62 61 63 6b 67 72 | 6f 75 6e 64 20 72 65 64 |e backgr|ound red|
|00003de0| 2f 67 72 65 65 6e 2f 62 | 6c 75 65 20 66 6f 72 20 |/green/b|lue for |
|00003df0| 77 69 6e 64 6f 77 3b 20 | 30 20 3c 3d 20 52 2c 47 |window; |0 <= R,G|
|00003e00| 2c 42 20 3c 3d 20 31 2e | 22 29 0a 7b 0a 20 20 50 |,B <= 1.|").{. P|
|00003e10| 52 49 4d 49 54 49 56 45 | 5f 48 45 41 44 45 52 20 |RIMITIVE|_HEADER |
|00003e20| 28 34 29 3b 0a 20 20 7b | 0a 20 20 20 20 44 50 53 |(4);. {|. DPS|
|00003e30| 43 6f 6e 74 65 78 74 20 | 63 6f 6e 74 65 78 74 20 |Context |context |
|00003e40| 3d 20 61 72 67 5f 63 6f | 6e 74 65 78 74 28 31 29 |= arg_co|ntext(1)|
|00003e50| 3b 0a 20 20 20 20 4e 58 | 5f 44 55 52 49 4e 47 0a |;. NX|_DURING.|
|00003e60| 20 20 20 20 50 53 57 73 | 65 74 42 61 63 6b 67 72 | PSWs|etBackgr|
|00003e70| 6f 75 6e 64 52 47 42 28 | 63 6f 6e 74 65 78 74 2c |oundRGB(|context,|
|00003e80| 20 61 72 67 5f 72 65 61 | 6c 5f 69 6e 5f 72 61 6e | arg_rea|l_in_ran|
|00003e90| 67 65 28 32 2c 20 30 2e | 30 2c 20 31 2e 30 29 2c |ge(2, 0.|0, 1.0),|
|00003ea0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00003eb0| 20 20 20 20 20 20 20 20 | 20 61 72 67 5f 72 65 61 | | arg_rea|
|00003ec0| 6c 5f 69 6e 5f 72 61 6e | 67 65 28 33 2c 20 30 2e |l_in_ran|ge(3, 0.|
|00003ed0| 30 2c 20 31 2e 30 29 2c | 0a 20 20 20 20 20 20 20 |0, 1.0),|. |
|00003ee0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003ef0| 20 61 72 67 5f 72 65 61 | 6c 5f 69 6e 5f 72 61 6e | arg_rea|l_in_ran|
|00003f00| 67 65 28 34 2c 20 30 2e | 30 2c 20 31 2e 30 29 29 |ge(4, 0.|0, 1.0))|
|00003f10| 3b 0a 20 20 20 20 48 41 | 4e 44 4c 45 52 0a 20 20 |;. HA|NDLER. |
|00003f20| 20 20 7d 0a 20 20 50 52 | 49 4d 49 54 49 56 45 5f | }. PR|IMITIVE_|
|00003f30| 52 45 54 55 52 4e 20 28 | 55 4e 53 50 45 43 49 46 |RETURN (|UNSPECIF|
|00003f40| 49 43 29 3b 0a 7d 0a 0a | 44 45 46 49 4e 45 5f 50 |IC);.}..|DEFINE_P|
|00003f50| 52 49 4d 49 54 49 56 45 | 20 28 22 53 43 48 47 52 |RIMITIVE| ("SCHGR|
|00003f60| 41 50 48 2d 53 45 54 2d | 42 41 43 4b 47 52 4f 55 |APH-SET-|BACKGROU|
|00003f70| 4e 44 2d 47 52 41 59 22 | 2c 0a 20 20 20 20 20 20 |ND-GRAY"|,. |
|00003f80| 20 20 20 20 20 20 20 20 | 20 20 20 20 50 72 69 6d | | Prim|
|00003f90| 5f 73 63 68 67 72 61 70 | 68 5f 73 65 74 5f 62 61 |_schgrap|h_set_ba|
|00003fa0| 63 6b 67 6f 75 6e 64 5f | 67 72 61 79 2c 20 32 2c |ckgound_|gray, 2,|
|00003fb0| 20 32 2c 0a 20 22 28 53 | 43 48 47 52 41 50 48 2d | 2,. "(S|CHGRAPH-|
|00003fc0| 53 45 54 2d 42 41 43 4b | 47 52 4f 55 4e 44 2d 47 |SET-BACK|GROUND-G|
|00003fd0| 52 41 59 20 57 49 4e 44 | 4f 57 20 47 52 41 59 29 |RAY WIND|OW GRAY)|
|00003fe0| 5c 6e 5c 0a 53 65 74 73 | 20 74 68 65 20 62 61 63 |\n\.Sets| the bac|
|00003ff0| 6b 67 72 6f 75 6e 64 20 | 67 72 61 79 20 66 6f 72 |kground |gray for|
|00004000| 20 77 69 6e 64 6f 77 3b | 20 30 20 3c 3d 20 67 72 | window;| 0 <= gr|
|00004010| 61 79 20 3c 3d 20 31 2e | 22 29 0a 7b 0a 20 20 50 |ay <= 1.|").{. P|
|00004020| 52 49 4d 49 54 49 56 45 | 5f 48 45 41 44 45 52 20 |RIMITIVE|_HEADER |
|00004030| 28 32 29 3b 0a 20 20 7b | 0a 20 20 20 20 44 50 53 |(2);. {|. DPS|
|00004040| 43 6f 6e 74 65 78 74 20 | 63 6f 6e 74 65 78 74 20 |Context |context |
|00004050| 3d 20 61 72 67 5f 63 6f | 6e 74 65 78 74 28 31 29 |= arg_co|ntext(1)|
|00004060| 3b 0a 20 20 20 20 4e 58 | 5f 44 55 52 49 4e 47 0a |;. NX|_DURING.|
|00004070| 20 20 20 20 50 53 57 73 | 65 74 42 61 63 6b 67 72 | PSWs|etBackgr|
|00004080| 6f 75 6e 64 47 72 61 79 | 28 63 6f 6e 74 65 78 74 |oundGray|(context|
|00004090| 2c 20 61 72 67 5f 72 65 | 61 6c 5f 69 6e 5f 72 61 |, arg_re|al_in_ra|
|000040a0| 6e 67 65 28 32 2c 20 30 | 2e 30 2c 20 31 2e 30 29 |nge(2, 0|.0, 1.0)|
|000040b0| 29 3b 0a 20 20 20 20 48 | 41 4e 44 4c 45 52 0a 20 |);. H|ANDLER. |
|000040c0| 20 20 20 7d 0a 20 20 50 | 52 49 4d 49 54 49 56 45 | }. P|RIMITIVE|
|000040d0| 5f 52 45 54 55 52 4e 20 | 28 55 4e 53 50 45 43 49 |_RETURN |(UNSPECI|
|000040e0| 46 49 43 29 3b 0a 7d 0a | 0a 44 45 46 49 4e 45 5f |FIC);.}.|.DEFINE_|
|000040f0| 50 52 49 4d 49 54 49 56 | 45 20 28 22 53 43 48 47 |PRIMITIV|E ("SCHG|
|00004100| 52 41 50 48 2d 53 45 54 | 2d 44 52 41 57 49 4e 47 |RAPH-SET|-DRAWING|
|00004110| 2d 4d 4f 44 45 22 2c 0a | 20 20 20 20 20 20 20 20 |-MODE",.| |
|00004120| 20 20 20 20 20 20 20 20 | 20 20 50 72 69 6d 5f 73 | | Prim_s|
|00004130| 63 68 67 72 61 70 68 5f | 73 65 74 5f 64 72 61 77 |chgraph_|set_draw|
|00004140| 69 6e 67 5f 6d 6f 64 65 | 2c 20 32 2c 20 32 2c 0a |ing_mode|, 2, 2,.|
|00004150| 20 22 28 53 43 48 47 52 | 41 50 48 2d 53 45 54 2d | "(SCHGR|APH-SET-|
|00004160| 44 52 41 57 49 4e 47 2d | 4d 4f 44 45 20 57 49 4e |DRAWING-|MODE WIN|
|00004170| 44 4f 57 20 4d 4f 44 45 | 29 5c 6e 5c 0a 53 65 74 |DOW MODE|)\n\.Set|
|00004180| 73 20 74 68 65 20 64 72 | 61 77 69 6e 67 20 6d 6f |s the dr|awing mo|
|00004190| 64 65 20 66 6f 72 20 77 | 69 6e 64 6f 77 3b 20 6f |de for w|indow; o|
|000041a0| 6e 6c 79 20 30 2c 33 2c | 37 2c 31 35 20 61 70 72 |nly 0,3,|7,15 apr|
|000041b0| 6f 78 69 6d 61 74 65 6c | 79 20 77 6f 72 6b 2e 22 |oximatel|y work."|
|000041c0| 29 0a 7b 0a 20 20 50 52 | 49 4d 49 54 49 56 45 5f |).{. PR|IMITIVE_|
|000041d0| 48 45 41 44 45 52 20 28 | 32 29 3b 0a 20 20 7b 0a |HEADER (|2);. {.|
|000041e0| 20 20 20 20 44 50 53 43 | 6f 6e 74 65 78 74 20 63 | DPSC|ontext c|
|000041f0| 6f 6e 74 65 78 74 20 3d | 20 61 72 67 5f 63 6f 6e |ontext =| arg_con|
|00004200| 74 65 78 74 28 31 29 3b | 0a 20 20 20 20 4e 58 5f |text(1);|. NX_|
|00004210| 44 55 52 49 4e 47 0a 20 | 20 20 20 69 66 28 61 72 |DURING. | if(ar|
|00004220| 67 5f 69 6e 64 65 78 5f | 69 6e 74 65 67 65 72 28 |g_index_|integer(|
|00004230| 32 2c 20 31 36 29 20 3d | 3d 20 30 29 0a 20 20 20 |2, 16) =|= 0). |
|00004240| 20 20 20 50 53 57 62 61 | 63 6b 67 72 6f 75 6e 64 | PSWba|ckground|
|00004250| 28 63 6f 6e 74 65 78 74 | 29 3b 0a 20 20 20 20 65 |(context|);. e|
|00004260| 6c 73 65 0a 20 20 20 20 | 20 20 50 53 57 66 6f 72 |lse. | PSWfor|
|00004270| 65 67 72 6f 75 6e 64 28 | 63 6f 6e 74 65 78 74 29 |eground(|context)|
|00004280| 3b 0a 20 20 20 20 48 41 | 4e 44 4c 45 52 0a 20 20 |;. HA|NDLER. |
|00004290| 20 20 7d 0a 20 20 50 52 | 49 4d 49 54 49 56 45 5f | }. PR|IMITIVE_|
|000042a0| 52 45 54 55 52 4e 20 28 | 55 4e 53 50 45 43 49 46 |RETURN (|UNSPECIF|
|000042b0| 49 43 29 3b 0a 7d 0a 0a | 44 45 46 49 4e 45 5f 50 |IC);.}..|DEFINE_P|
|000042c0| 52 49 4d 49 54 49 56 45 | 20 28 22 53 43 48 47 52 |RIMITIVE| ("SCHGR|
|000042d0| 41 50 48 2d 53 45 54 2d | 4c 49 4e 45 2d 53 54 59 |APH-SET-|LINE-STY|
|000042e0| 4c 45 22 2c 0a 20 20 20 | 20 20 20 20 20 20 20 20 |LE",. | |
|000042f0| 20 20 20 20 20 20 20 50 | 72 69 6d 5f 73 63 68 67 | P|rim_schg|
|00004300| 72 61 70 68 5f 73 65 74 | 5f 6c 69 6e 65 5f 73 74 |raph_set|_line_st|
|00004310| 79 6c 65 2c 20 32 2c 20 | 32 2c 0a 20 22 28 53 43 |yle, 2, |2,. "(SC|
|00004320| 48 47 52 41 50 48 2d 53 | 45 54 2d 4c 49 4e 45 2d |HGRAPH-S|ET-LINE-|
|00004330| 53 54 59 4c 45 20 57 49 | 4e 44 4f 57 20 53 54 59 |STYLE WI|NDOW STY|
|00004340| 4c 45 29 5c 6e 5c 0a 53 | 65 74 73 20 74 68 65 20 |LE)\n\.S|ets the |
|00004350| 6c 69 6e 65 20 73 74 79 | 6c 65 20 66 6f 72 20 77 |line sty|le for w|
|00004360| 69 6e 64 6f 77 3b 20 6f | 6e 6c 79 20 6c 6f 6f 6b |indow; o|nly look|
|00004370| 73 20 67 6f 6f 64 20 69 | 66 20 69 6e 20 64 65 76 |s good i|f in dev|
|00004380| 69 63 65 20 63 6f 6f 72 | 64 69 6e 61 74 65 73 2e |ice coor|dinates.|
|00004390| 22 29 0a 7b 0a 20 20 50 | 52 49 4d 49 54 49 56 45 |").{. P|RIMITIVE|
|000043a0| 5f 48 45 41 44 45 52 20 | 28 32 29 3b 0a 20 20 7b |_HEADER |(2);. {|
|000043b0| 0a 20 20 20 20 69 6e 74 | 20 73 74 79 6c 65 20 3d |. int| style =|
|000043c0| 20 61 72 67 5f 69 6e 64 | 65 78 5f 69 6e 74 65 67 | arg_ind|ex_integ|
|000043d0| 65 72 28 32 2c 20 38 29 | 3b 0a 20 20 20 20 44 50 |er(2, 8)|;. DP|
|000043e0| 53 43 6f 6e 74 65 78 74 | 20 63 6f 6e 74 65 78 74 |SContext| context|
|000043f0| 20 3d 20 61 72 67 5f 63 | 6f 6e 74 65 78 74 28 31 | = arg_c|ontext(1|
|00004400| 29 3b 0a 20 20 20 20 4e | 58 5f 44 55 52 49 4e 47 |);. N|X_DURING|
|00004410| 0a 20 20 20 20 44 50 53 | 73 65 74 64 61 73 68 28 |. DPS|setdash(|
|00004420| 63 6f 6e 74 65 78 74 2c | 20 6c 69 6e 65 5f 73 74 |context,| line_st|
|00004430| 79 6c 65 5f 70 61 74 73 | 5b 73 74 79 6c 65 5d 2c |yle_pats|[style],|
|00004440| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00004450| 6c 69 6e 65 5f 73 74 79 | 6c 65 5f 73 69 7a 65 73 |line_sty|le_sizes|
|00004460| 5b 73 74 79 6c 65 5d 2c | 20 6c 69 6e 65 5f 73 74 |[style],| line_st|
|00004470| 79 6c 65 5f 6f 66 66 73 | 65 74 73 5b 73 74 79 6c |yle_offs|ets[styl|
|00004480| 65 5d 29 3b 0a 20 20 20 | 20 48 41 4e 44 4c 45 52 |e]);. | HANDLER|
|00004490| 0a 20 20 7d 0a 20 20 50 | 52 49 4d 49 54 49 56 45 |. }. P|RIMITIVE|
|000044a0| 5f 52 45 54 55 52 4e 20 | 28 55 4e 53 50 45 43 49 |_RETURN |(UNSPECI|
|000044b0| 46 49 43 29 3b 0a 7d 0a | 0a 44 45 46 49 4e 45 5f |FIC);.}.|.DEFINE_|
|000044c0| 50 52 49 4d 49 54 49 56 | 45 20 28 22 53 43 48 47 |PRIMITIV|E ("SCHG|
|000044d0| 52 41 50 48 2d 41 44 4a | 55 53 54 2d 43 4f 4f 52 |RAPH-ADJ|UST-COOR|
|000044e0| 44 49 4e 41 54 45 53 22 | 2c 0a 20 20 20 20 20 20 |DINATES"|,. |
|000044f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 50 72 69 6d | | Prim|
|00004500| 5f 73 63 68 67 72 61 70 | 68 5f 61 64 6a 75 73 74 |_schgrap|h_adjust|
|00004510| 5f 63 6f 6f 72 64 69 6e | 61 74 65 73 2c 20 39 2c |_coordin|ates, 9,|
|00004520| 20 39 2c 0a 20 22 28 53 | 43 48 47 52 41 50 48 2d | 9,. "(S|CHGRAPH-|
|00004530| 53 45 54 2d 41 44 4a 55 | 53 54 2d 43 4f 4f 52 44 |SET-ADJU|ST-COORD|
|00004540| 49 4e 41 54 45 53 20 57 | 49 4e 44 4f 57 20 4d 4f |INATES W|INDOW MO|
|00004550| 44 45 20 4f 4c 44 2d 58 | 4c 20 4f 4c 44 2d 59 42 |DE OLD-X|L OLD-YB|
|00004560| 20 4f 4c 44 2d 58 52 20 | 4f 4c 44 2d 59 54 20 4e | OLD-XR |OLD-YT N|
|00004570| 45 57 2d 58 4c 20 4e 45 | 57 2d 59 42 20 4e 45 57 |EW-XL NE|W-YB NEW|
|00004580| 2d 58 52 20 4e 45 57 2d | 59 54 29 5c 6e 5c 0a 43 |-XR NEW-|YT)\n\.C|
|00004590| 68 61 6e 67 65 73 20 74 | 68 65 20 63 6f 6f 72 64 |hanges t|he coord|
|000045a0| 69 6e 61 74 65 20 6c 69 | 6d 69 74 73 20 6f 66 20 |inate li|mits of |
|000045b0| 77 69 6e 64 6f 77 20 66 | 72 6f 6d 20 28 6f 6c 64 |window f|rom (old|
|000045c0| 2d 78 6c 2c 6f 6c 64 2d | 79 62 29 2d 28 6f 6c 64 |-xl,old-|yb)-(old|
|000045d0| 2d 78 72 2c 6f 6c 64 2d | 79 74 29 20 74 6f 20 28 |-xr,old-|yt) to (|
|000045e0| 6e 65 77 2d 78 6c 2c 6e | 65 77 2d 79 62 29 2d 28 |new-xl,n|ew-yb)-(|
|000045f0| 6e 65 77 2d 78 72 2c 6e | 65 77 2d 79 74 29 22 29 |new-xr,n|ew-yt)")|
|00004600| 0a 7b 0a 20 20 50 52 49 | 4d 49 54 49 56 45 5f 48 |.{. PRI|MITIVE_H|
|00004610| 45 41 44 45 52 20 28 39 | 29 3b 0a 20 20 7b 0a 20 |EADER (9|);. {. |
|00004620| 20 20 20 44 50 53 43 6f | 6e 74 65 78 74 20 63 6f | DPSCo|ntext co|
|00004630| 6e 74 65 78 74 20 3d 20 | 61 72 67 5f 63 6f 6e 74 |ntext = |arg_cont|
|00004640| 65 78 74 28 31 29 3b 0a | 20 20 20 20 4e 58 5f 44 |ext(1);.| NX_D|
|00004650| 55 52 49 4e 47 0a 20 20 | 20 20 61 64 6a 75 73 74 |URING. | adjust|
|00004660| 43 6f 6f 72 64 69 6e 61 | 74 65 73 28 63 6f 6e 74 |Coordina|tes(cont|
|00004670| 65 78 74 2c 0a 20 20 20 | 20 20 20 20 20 20 20 20 |ext,. | |
|00004680| 20 20 20 20 20 20 20 20 | 20 20 20 61 72 67 5f 72 | | arg_r|
|00004690| 65 61 6c 5f 6e 75 6d 62 | 65 72 28 32 29 2c 20 61 |eal_numb|er(2), a|
|000046a0| 72 67 5f 72 65 61 6c 5f | 6e 75 6d 62 65 72 28 33 |rg_real_|number(3|
|000046b0| 29 2c 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |),. | |
|000046c0| 20 20 20 20 20 20 20 20 | 20 61 72 67 5f 72 65 61 | | arg_rea|
|000046d0| 6c 5f 6e 75 6d 62 65 72 | 28 34 29 2c 20 61 72 67 |l_number|(4), arg|
|000046e0| 5f 72 65 61 6c 5f 6e 75 | 6d 62 65 72 28 35 29 2c |_real_nu|mber(5),|
|000046f0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00004700| 20 20 20 20 20 20 20 61 | 72 67 5f 72 65 61 6c 5f | a|rg_real_|
|00004710| 6e 75 6d 62 65 72 28 36 | 29 2c 20 61 72 67 5f 72 |number(6|), arg_r|
|00004720| 65 61 6c 5f 6e 75 6d 62 | 65 72 28 37 29 2c 0a 20 |eal_numb|er(7),. |
|00004730| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004740| 20 20 20 20 20 61 72 67 | 5f 72 65 61 6c 5f 6e 75 | arg|_real_nu|
|00004750| 6d 62 65 72 28 38 29 2c | 20 61 72 67 5f 72 65 61 |mber(8),| arg_rea|
|00004760| 6c 5f 6e 75 6d 62 65 72 | 28 39 29 29 3b 0a 20 20 |l_number|(9));. |
|00004770| 20 20 48 41 4e 44 4c 45 | 52 0a 20 20 20 20 7d 0a | HANDLE|R. }.|
|00004780| 20 20 50 52 49 4d 49 54 | 49 56 45 5f 52 45 54 55 | PRIMIT|IVE_RETU|
|00004790| 52 4e 20 28 55 4e 53 50 | 45 43 49 46 49 43 29 3b |RN (UNSP|ECIFIC);|
|000047a0| 0a 7d 0a 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.}......|........|
|000047b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004800| 4d 49 54 2d 53 63 68 65 | 6d 65 2d 37 2e 31 2e 33 |MIT-Sche|me-7.1.3|
|00004810| 2d 70 61 74 63 68 65 73 | 2f 61 64 64 65 64 2d 66 |-patches|/added-f|
|00004820| 69 6c 65 73 2f 73 72 63 | 2f 6d 69 63 72 6f 63 6f |iles/src|/microco|
|00004830| 64 65 2f 73 63 68 77 72 | 61 70 73 2e 70 73 77 00 |de/schwr|aps.psw.|
|00004840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004860| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 32 31 35 |.... 6|44 . 215|
|00004870| 32 31 20 00 20 32 33 34 | 32 31 20 00 20 20 20 20 |21 . 234|21 . |
|00004880| 20 20 20 35 30 34 31 20 | 20 35 31 32 32 35 37 37 | 5041 | 5122577|
|00004890| 37 31 30 20 20 32 33 31 | 34 30 00 20 30 00 00 00 |710 231|40. 0...|
|000048a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004900| 00 75 73 74 61 72 20 20 | 00 6d 61 78 00 00 00 00 |.ustar |.max....|
|00004910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004920| 00 00 00 00 00 00 00 00 | 00 73 63 68 6d 61 74 69 |........|.schmati|
|00004930| 6b 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |k.......|........|
|00004940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a00| 64 65 66 69 6e 65 70 73 | 20 50 53 57 69 6e 69 74 |defineps| PSWinit|
|00004a10| 69 61 6c 69 7a 65 28 44 | 50 53 43 6f 6e 74 65 78 |ialize(D|PSContex|
|00004a20| 74 20 63 6f 6e 74 65 78 | 74 3b 20 69 6e 74 20 77 |t contex|t; int w|
|00004a30| 69 6e 64 6f 77 29 0a 20 | 20 20 20 20 20 20 20 77 |indow). | w|
|00004a40| 69 6e 64 6f 77 20 77 69 | 6e 64 6f 77 64 65 76 69 |indow wi|ndowdevi|
|00004a50| 63 65 72 6f 75 6e 64 0a | 20 20 20 20 20 20 20 20 |ceround.| |
|00004a60| 30 20 73 65 74 6c 69 6e | 65 77 69 64 74 68 0a 20 |0 setlin|ewidth. |
|00004a70| 20 20 20 20 20 20 20 2f | 48 65 6c 76 65 74 69 63 | /|Helvetic|
|00004a80| 61 20 66 69 6e 64 66 6f | 6e 74 20 31 32 20 73 63 |a findfo|nt 12 sc|
|00004a90| 61 6c 65 66 6f 6e 74 20 | 73 65 74 66 6f 6e 74 0a |alefont |setfont.|
|00004aa0| 20 20 20 20 20 20 20 20 | 2f 62 67 63 6f 6c 6f 72 | |/bgcolor|
|00004ab0| 20 7b 31 20 73 65 74 67 | 72 61 79 7d 20 64 65 66 | {1 setg|ray} def|
|00004ac0| 0a 20 20 20 20 20 20 20 | 20 2f 66 67 63 6f 6c 6f |. | /fgcolo|
|00004ad0| 72 20 7b 30 20 73 65 74 | 67 72 61 79 7d 20 64 65 |r {0 set|gray} de|
|00004ae0| 66 0a 20 20 20 20 20 20 | 20 20 2f 64 72 61 77 69 |f. | /drawi|
|00004af0| 6e 67 63 6f 6c 6f 72 20 | 7b 66 67 63 6f 6c 6f 72 |ngcolor |{fgcolor|
|00004b00| 7d 20 64 65 66 0a 20 20 | 20 20 20 20 20 20 64 72 |} def. | dr|
|00004b10| 61 77 69 6e 67 63 6f 6c | 6f 72 0a 65 6e 64 70 73 |awingcol|or.endps|
|00004b20| 0a 0a 64 65 66 69 6e 65 | 70 73 20 50 53 57 66 6f |..define|ps PSWfo|
|00004b30| 72 65 67 72 6f 75 6e 64 | 28 44 50 53 43 6f 6e 74 |reground|(DPSCont|
|00004b40| 65 78 74 20 63 6f 6e 74 | 65 78 74 29 0a 20 20 20 |ext cont|ext). |
|00004b50| 20 20 20 20 20 2f 64 72 | 61 77 69 6e 67 63 6f 6c | /dr|awingcol|
|00004b60| 6f 72 20 7b 66 67 63 6f | 6c 6f 72 7d 20 64 65 66 |or {fgco|lor} def|
|00004b70| 0a 20 20 20 20 20 20 20 | 20 64 72 61 77 69 6e 67 |. | drawing|
|00004b80| 63 6f 6c 6f 72 0a 65 6e | 64 70 73 0a 0a 64 65 66 |color.en|dps..def|
|00004b90| 69 6e 65 70 73 20 50 53 | 57 62 61 63 6b 67 72 6f |ineps PS|Wbackgro|
|00004ba0| 75 6e 64 28 44 50 53 43 | 6f 6e 74 65 78 74 20 63 |und(DPSC|ontext c|
|00004bb0| 6f 6e 74 65 78 74 29 0a | 20 20 20 20 20 20 20 20 |ontext).| |
|00004bc0| 2f 64 72 61 77 69 6e 67 | 63 6f 6c 6f 72 20 7b 62 |/drawing|color {b|
|00004bd0| 67 63 6f 6c 6f 72 7d 20 | 64 65 66 0a 20 20 20 20 |gcolor} |def. |
|00004be0| 20 20 20 20 64 72 61 77 | 69 6e 67 63 6f 6c 6f 72 | draw|ingcolor|
|00004bf0| 0a 65 6e 64 70 73 0a 0a | 64 65 66 69 6e 65 70 73 |.endps..|defineps|
|00004c00| 20 50 53 57 73 65 74 46 | 6f 72 65 67 72 6f 75 6e | PSWsetF|oregroun|
|00004c10| 64 48 53 42 28 44 50 53 | 43 6f 6e 74 65 78 74 20 |dHSB(DPS|Context |
|00004c20| 63 6f 6e 74 65 78 74 3b | 20 66 6c 6f 61 74 20 68 |context;| float h|
|00004c30| 2c 20 73 2c 20 62 29 0a | 20 20 20 20 20 20 20 20 |, s, b).| |
|00004c40| 2f 66 67 63 6f 6c 6f 72 | 20 7b 68 20 73 20 62 20 |/fgcolor| {h s b |
|00004c50| 73 65 74 68 73 62 63 6f | 6c 6f 72 7d 20 64 65 66 |sethsbco|lor} def|
|00004c60| 0a 20 20 20 20 20 20 20 | 20 64 72 61 77 69 6e 67 |. | drawing|
|00004c70| 63 6f 6c 6f 72 0a 65 6e | 64 70 73 0a 20 20 20 20 |color.en|dps. |
|00004c80| 20 20 20 20 0a 64 65 66 | 69 6e 65 70 73 20 50 53 | .def|ineps PS|
|00004c90| 57 73 65 74 46 6f 72 65 | 67 72 6f 75 6e 64 52 47 |WsetFore|groundRG|
|00004ca0| 42 28 44 50 53 43 6f 6e | 74 65 78 74 20 63 6f 6e |B(DPSCon|text con|
|00004cb0| 74 65 78 74 3b 20 66 6c | 6f 61 74 20 72 2c 20 67 |text; fl|oat r, g|
|00004cc0| 2c 20 62 29 0a 20 20 20 | 20 20 20 20 20 2f 66 67 |, b). | /fg|
|00004cd0| 63 6f 6c 6f 72 20 7b 72 | 20 67 20 62 20 73 65 74 |color {r| g b set|
|00004ce0| 72 67 62 63 6f 6c 6f 72 | 7d 20 64 65 66 0a 20 20 |rgbcolor|} def. |
|00004cf0| 20 20 20 20 20 20 64 72 | 61 77 69 6e 67 63 6f 6c | dr|awingcol|
|00004d00| 6f 72 0a 65 6e 64 70 73 | 0a 20 20 20 20 20 20 20 |or.endps|. |
|00004d10| 20 0a 64 65 66 69 6e 65 | 70 73 20 50 53 57 73 65 | .define|ps PSWse|
|00004d20| 74 46 6f 72 65 67 72 6f | 75 6e 64 47 72 61 79 28 |tForegro|undGray(|
|00004d30| 44 50 53 43 6f 6e 74 65 | 78 74 20 63 6f 6e 74 65 |DPSConte|xt conte|
|00004d40| 78 74 3b 20 66 6c 6f 61 | 74 20 67 72 61 79 29 0a |xt; floa|t gray).|
|00004d50| 20 20 20 20 20 20 20 20 | 2f 66 67 63 6f 6c 6f 72 | |/fgcolor|
|00004d60| 20 7b 67 72 61 79 20 73 | 65 74 67 72 61 79 7d 20 | {gray s|etgray} |
|00004d70| 64 65 66 0a 20 20 20 20 | 20 20 20 20 64 72 61 77 |def. | draw|
|00004d80| 69 6e 67 63 6f 6c 6f 72 | 0a 65 6e 64 70 73 0a 20 |ingcolor|.endps. |
|00004d90| 20 20 20 20 20 20 20 0a | 64 65 66 69 6e 65 70 73 | .|defineps|
|00004da0| 20 50 53 57 73 65 74 42 | 61 63 6b 67 72 6f 75 6e | PSWsetB|ackgroun|
|00004db0| 64 48 53 42 28 44 50 53 | 43 6f 6e 74 65 78 74 20 |dHSB(DPS|Context |
|00004dc0| 63 6f 6e 74 65 78 74 3b | 20 66 6c 6f 61 74 20 68 |context;| float h|
|00004dd0| 2c 20 73 2c 20 62 29 0a | 20 20 20 20 20 20 20 20 |, s, b).| |
|00004de0| 2f 62 67 63 6f 6c 6f 72 | 20 7b 68 20 73 20 62 20 |/bgcolor| {h s b |
|00004df0| 73 65 74 68 73 62 63 6f | 6c 6f 72 7d 20 64 65 66 |sethsbco|lor} def|
|00004e00| 0a 20 20 20 20 20 20 20 | 20 64 72 61 77 69 6e 67 |. | drawing|
|00004e10| 63 6f 6c 6f 72 0a 65 6e | 64 70 73 0a 20 20 20 20 |color.en|dps. |
|00004e20| 20 20 20 20 0a 64 65 66 | 69 6e 65 70 73 20 50 53 | .def|ineps PS|
|00004e30| 57 73 65 74 42 61 63 6b | 67 72 6f 75 6e 64 52 47 |WsetBack|groundRG|
|00004e40| 42 28 44 50 53 43 6f 6e | 74 65 78 74 20 63 6f 6e |B(DPSCon|text con|
|00004e50| 74 65 78 74 3b 20 66 6c | 6f 61 74 20 72 2c 20 67 |text; fl|oat r, g|
|00004e60| 2c 20 62 29 0a 20 20 20 | 20 20 20 20 20 2f 62 67 |, b). | /bg|
|00004e70| 63 6f 6c 6f 72 20 7b 72 | 20 67 20 62 20 73 65 74 |color {r| g b set|
|00004e80| 72 67 62 63 6f 6c 6f 72 | 7d 20 64 65 66 0a 20 20 |rgbcolor|} def. |
|00004e90| 20 20 20 20 20 20 64 72 | 61 77 69 6e 67 63 6f 6c | dr|awingcol|
|00004ea0| 6f 72 0a 65 6e 64 70 73 | 0a 20 20 20 20 20 20 20 |or.endps|. |
|00004eb0| 20 0a 64 65 66 69 6e 65 | 70 73 20 50 53 57 73 65 | .define|ps PSWse|
|00004ec0| 74 42 61 63 6b 67 72 6f | 75 6e 64 47 72 61 79 28 |tBackgro|undGray(|
|00004ed0| 44 50 53 43 6f 6e 74 65 | 78 74 20 63 6f 6e 74 65 |DPSConte|xt conte|
|00004ee0| 78 74 3b 20 66 6c 6f 61 | 74 20 67 72 61 79 29 0a |xt; floa|t gray).|
|00004ef0| 20 20 20 20 20 20 20 20 | 2f 62 67 63 6f 6c 6f 72 | |/bgcolor|
|00004f00| 20 7b 67 72 61 79 20 73 | 65 74 67 72 61 79 7d 20 | {gray s|etgray} |
|00004f10| 64 65 66 0a 20 20 20 20 | 20 20 20 20 64 72 61 77 |def. | draw|
|00004f20| 69 6e 67 63 6f 6c 6f 72 | 0a 65 6e 64 70 73 0a 20 |ingcolor|.endps. |
|00004f30| 20 20 20 20 20 20 20 0a | 64 65 66 69 6e 65 70 73 | .|defineps|
|00004f40| 20 50 53 57 61 64 6a 75 | 73 74 43 6f 6f 72 64 69 | PSWadju|stCoordi|
|00004f50| 6e 61 74 65 73 28 44 50 | 53 43 6f 6e 74 65 78 74 |nates(DP|SContext|
|00004f60| 20 63 6f 6e 74 65 78 74 | 3b 20 66 6c 6f 61 74 20 | context|; float |
|00004f70| 6f 6c 64 5f 78 6c 2c 20 | 6f 6c 64 5f 79 62 2c 0a |old_xl, |old_yb,.|
|00004f80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004f90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 6f 6c | | ol|
|00004fa0| 64 5f 78 72 2c 20 6f 6c | 64 5f 79 74 2c 20 6e 65 |d_xr, ol|d_yt, ne|
|00004fb0| 77 5f 78 6c 2c 20 6e 65 | 77 5f 79 62 2c 20 6e 65 |w_xl, ne|w_yb, ne|
|00004fc0| 77 5f 78 72 2c 20 6e 65 | 77 5f 79 74 2c 0a 20 20 |w_xr, ne|w_yt,. |
|00004fd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004fe0| 20 20 20 20 20 20 20 20 | 20 20 20 20 78 73 63 61 | | xsca|
|00004ff0| 6c 65 2c 20 79 73 63 61 | 6c 65 2c 20 61 76 67 73 |le, ysca|le, avgs|
|00005000| 63 61 6c 65 29 0a 20 20 | 20 20 20 20 20 20 6f 6c |cale). | ol|
|00005010| 64 5f 78 6c 20 6f 6c 64 | 5f 79 62 20 74 72 61 6e |d_xl old|_yb tran|
|00005020| 73 6c 61 74 65 0a 20 20 | 20 20 20 20 20 20 6f 6c |slate. | ol|
|00005030| 64 5f 78 72 20 6f 6c 64 | 5f 78 6c 20 73 75 62 20 |d_xr old|_xl sub |
|00005040| 6f 6c 64 5f 79 74 20 6f | 6c 64 5f 79 62 20 73 75 |old_yt o|ld_yb su|
|00005050| 62 20 73 63 61 6c 65 0a | 20 20 20 20 20 20 20 20 |b scale.| |
|00005060| 31 20 6e 65 77 5f 78 72 | 20 6e 65 77 5f 78 6c 20 |1 new_xr| new_xl |
|00005070| 73 75 62 20 64 69 76 20 | 31 20 6e 65 77 5f 79 74 |sub div |1 new_yt|
|00005080| 20 6e 65 77 5f 79 62 20 | 73 75 62 20 64 69 76 20 | new_yb |sub div |
|00005090| 73 63 61 6c 65 0a 20 20 | 20 20 20 20 20 20 6e 65 |scale. | ne|
|000050a0| 77 5f 78 6c 20 6e 65 67 | 20 6e 65 77 5f 79 62 20 |w_xl neg| new_yb |
|000050b0| 6e 65 67 20 74 72 61 6e | 73 6c 61 74 65 0a 20 20 |neg tran|slate. |
|000050c0| 20 20 20 20 20 20 63 75 | 72 72 65 6e 74 66 6f 6e | cu|rrentfon|
|000050d0| 74 20 78 73 63 61 6c 65 | 20 79 73 63 61 6c 65 20 |t xscale| yscale |
|000050e0| 6d 61 74 72 69 78 20 73 | 63 61 6c 65 20 6d 61 6b |matrix s|cale mak|
|000050f0| 65 66 6f 6e 74 20 73 65 | 74 66 6f 6e 74 0a 20 20 |efont se|tfont. |
|00005100| 20 20 20 20 20 20 63 75 | 72 72 65 6e 74 6c 69 6e | cu|rrentlin|
|00005110| 65 77 69 64 74 68 20 61 | 76 67 73 63 61 6c 65 20 |ewidth a|vgscale |
|00005120| 6d 75 6c 20 73 65 74 6c | 69 6e 65 77 69 64 74 68 |mul setl|inewidth|
|00005130| 0a 20 20 20 20 20 20 20 | 20 63 75 72 72 65 6e 74 |. | current|
|00005140| 64 61 73 68 20 61 76 67 | 73 63 61 6c 65 20 64 75 |dash avg|scale du|
|00005150| 70 20 33 20 31 20 72 6f | 6c 6c 20 6d 75 6c 20 33 |p 3 1 ro|ll mul 3|
|00005160| 20 31 20 72 6f 6c 6c 0a | 20 20 20 20 20 20 20 20 | 1 roll.| |
|00005170| 5b 20 33 20 31 20 72 6f | 6c 6c 20 65 78 63 68 20 |[ 3 1 ro|ll exch |
|00005180| 7b 65 78 63 68 20 64 75 | 70 20 33 20 31 20 72 6f |{exch du|p 3 1 ro|
|00005190| 6c 6c 20 6d 75 6c 20 65 | 78 63 68 7d 20 66 6f 72 |ll mul e|xch} for|
|000051a0| 61 6c 6c 20 70 6f 70 20 | 5d 0a 20 20 20 20 20 20 |all pop |]. |
|000051b0| 20 20 65 78 63 68 20 73 | 65 74 64 61 73 68 0a 65 | exch s|etdash.e|
|000051c0| 6e 64 70 73 0a 0a 64 65 | 66 69 6e 65 70 73 20 50 |ndps..de|fineps P|
|000051d0| 53 57 63 6c 65 61 72 28 | 44 50 53 43 6f 6e 74 65 |SWclear(|DPSConte|
|000051e0| 78 74 20 63 6f 6e 74 65 | 78 74 29 0a 20 20 20 20 |xt conte|xt). |
|000051f0| 20 20 20 20 67 73 61 76 | 65 20 69 6e 69 74 63 6c | gsav|e initcl|
|00005200| 69 70 20 63 6c 69 70 70 | 61 74 68 20 62 67 63 6f |ip clipp|ath bgco|
|00005210| 6c 6f 72 20 66 69 6c 6c | 20 67 72 65 73 74 6f 72 |lor fill| grestor|
|00005220| 65 0a 65 6e 64 70 73 0a | 0a 64 65 66 69 6e 65 70 |e.endps.|.definep|
|00005230| 73 20 50 53 57 64 72 61 | 77 4c 69 6e 65 28 44 50 |s PSWdra|wLine(DP|
|00005240| 53 43 6f 6e 74 65 78 74 | 20 63 6f 6e 74 65 78 74 |SContext| context|
|00005250| 3b 20 66 6c 6f 61 74 20 | 78 30 2c 20 79 30 2c 20 |; float |x0, y0, |
|00005260| 78 31 2c 20 79 31 29 0a | 20 20 20 20 20 20 20 20 |x1, y1).| |
|00005270| 6e 65 77 70 61 74 68 20 | 78 30 20 79 30 20 6d 6f |newpath |x0 y0 mo|
|00005280| 76 65 74 6f 20 78 31 20 | 79 31 20 6c 69 6e 65 74 |veto x1 |y1 linet|
|00005290| 6f 20 73 74 72 6f 6b 65 | 0a 65 6e 64 70 73 0a 0a |o stroke|.endps..|
|000052a0| 64 65 66 69 6e 65 70 73 | 20 50 53 57 64 72 61 77 |defineps| PSWdraw|
|000052b0| 50 6f 69 6e 74 28 44 50 | 53 43 6f 6e 74 65 78 74 |Point(DP|SContext|
|000052c0| 20 63 6f 6e 74 65 78 74 | 3b 20 66 6c 6f 61 74 20 | context|; float |
|000052d0| 78 2c 20 79 29 0a 20 20 | 20 20 20 20 20 20 6e 65 |x, y). | ne|
|000052e0| 77 70 61 74 68 20 78 20 | 79 20 6d 6f 76 65 74 6f |wpath x |y moveto|
|000052f0| 20 63 6c 6f 73 65 70 61 | 74 68 20 66 69 6c 6c 0a | closepa|th fill.|
|00005300| 65 6e 64 70 73 0a 0a 64 | 65 66 69 6e 65 70 73 20 |endps..d|efineps |
|00005310| 50 53 57 64 72 61 77 54 | 65 78 74 28 44 50 53 43 |PSWdrawT|ext(DPSC|
|00005320| 6f 6e 74 65 78 74 20 63 | 6f 6e 74 65 78 74 3b 20 |ontext c|ontext; |
|00005330| 66 6c 6f 61 74 20 78 2c | 20 79 3b 20 63 68 61 72 |float x,| y; char|
|00005340| 20 2a 73 74 72 69 6e 67 | 29 0a 20 20 20 20 20 20 | *string|). |
|00005350| 20 20 78 20 79 20 6d 6f | 76 65 74 6f 20 28 73 74 | x y mo|veto (st|
|00005360| 72 69 6e 67 29 20 73 68 | 6f 77 0a 65 6e 64 70 73 |ring) sh|ow.endps|
|00005370| 0a 0a 64 65 66 69 6e 65 | 70 73 20 50 53 57 73 65 |..define|ps PSWse|
|00005380| 74 43 6c 69 70 52 65 63 | 74 61 6e 67 6c 65 28 44 |tClipRec|tangle(D|
|00005390| 50 53 43 6f 6e 74 65 78 | 74 20 63 6f 6e 74 65 78 |PSContex|t contex|
|000053a0| 74 3b 20 66 6c 6f 61 74 | 20 78 6c 2c 20 79 62 2c |t; float| xl, yb,|
|000053b0| 20 78 72 2c 20 79 74 29 | 0a 20 20 20 20 20 20 20 | xr, yt)|. |
|000053c0| 20 69 6e 69 74 63 6c 69 | 70 20 6e 65 77 70 61 74 | initcli|p newpat|
|000053d0| 68 0a 20 20 20 20 20 20 | 20 20 78 6c 20 79 62 20 |h. | xl yb |
|000053e0| 6d 6f 76 65 74 6f 20 78 | 6c 20 79 74 20 6c 69 6e |moveto x|l yt lin|
|000053f0| 65 74 6f 20 78 72 20 79 | 74 20 6c 69 6e 65 74 6f |eto xr y|t lineto|
|00005400| 20 78 72 20 79 62 20 6c | 69 6e 65 74 6f 0a 20 20 | xr yb l|ineto. |
|00005410| 20 20 20 20 20 20 63 6c | 69 70 0a 65 6e 64 70 73 | cl|ip.endps|
|00005420| 0a 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005480| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005600| 4d 49 54 2d 53 63 68 65 | 6d 65 2d 37 2e 31 2e 33 |MIT-Sche|me-7.1.3|
|00005610| 2d 70 61 74 63 68 65 73 | 2f 61 64 64 65 64 2d 66 |-patches|/added-f|
|00005620| 69 6c 65 73 2f 73 72 63 | 2f 72 75 6e 74 69 6d 65 |iles/src|/runtime|
|00005630| 2f 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |/.......|........|
|00005640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005660| 00 00 00 00 20 20 20 37 | 35 35 20 00 20 32 31 35 |.... 7|55 . 215|
|00005670| 32 31 20 00 20 32 33 34 | 32 31 20 00 20 20 20 20 |21 . 234|21 . |
|00005680| 20 20 20 20 20 20 30 20 | 20 35 33 34 37 34 36 35 | 0 | 5347465|
|00005690| 34 35 30 20 20 32 30 32 | 32 30 00 20 35 00 00 00 |450 202|20. 5...|
|000056a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005700| 00 75 73 74 61 72 20 20 | 00 6d 61 78 00 00 00 00 |.ustar |.max....|
|00005710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005720| 00 00 00 00 00 00 00 00 | 00 73 63 68 6d 61 74 69 |........|.schmati|
|00005730| 6b 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |k.......|........|
|00005740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005800| 4d 49 54 2d 53 63 68 65 | 6d 65 2d 37 2e 31 2e 33 |MIT-Sche|me-7.1.3|
|00005810| 2d 70 61 74 63 68 65 73 | 2f 61 64 64 65 64 2d 66 |-patches|/added-f|
|00005820| 69 6c 65 73 2f 73 72 63 | 2f 72 75 6e 74 69 6d 65 |iles/src|/runtime|
|00005830| 2f 73 63 68 65 72 72 6f | 72 2e 73 63 6d 00 00 00 |/scherro|r.scm...|
|00005840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005860| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 32 31 35 |.... 6|44 . 215|
|00005870| 32 31 20 00 20 32 33 34 | 32 31 20 00 20 20 20 20 |21 . 234|21 . |
|00005880| 20 20 20 36 35 30 30 20 | 20 35 31 32 32 35 37 37 | 6500 | 5122577|
|00005890| 37 31 30 20 20 32 32 36 | 32 36 00 20 30 00 00 00 |710 226|26. 0...|
|000058a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000058b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000058c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000058d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000058e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000058f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005900| 00 75 73 74 61 72 20 20 | 00 6d 61 78 00 00 00 00 |.ustar |.max....|
|00005910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005920| 00 00 00 00 00 00 00 00 | 00 73 63 68 6d 61 74 69 |........|.schmati|
|00005930| 6b 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |k.......|........|
|00005940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005a00| 23 7c 20 2d 2a 2d 53 63 | 68 65 6d 65 2d 2a 2d 0a |#| -*-Sc|heme-*-.|
|00005a10| 0a 57 72 69 74 74 65 6e | 20 4f 63 74 6f 62 65 72 |.Written| October|
|00005a20| 20 31 33 2c 20 31 39 39 | 31 20 62 79 20 4d 61 78 | 13, 199|1 by Max|
|00005a30| 20 48 61 69 6c 70 65 72 | 69 6e 20 3c 6d 61 78 40 | Hailper|in <max@|
|00005a40| 6e 69 63 2e 67 61 63 2e | 65 64 75 3e 20 74 6f 20 |nic.gac.|edu> to |
|00005a50| 75 73 65 0a 53 63 68 65 | 6d 61 74 69 6b 2d 73 74 |use.Sche|matik-st|
|00005a60| 79 6c 65 20 65 72 72 6f | 72 20 6d 65 73 73 61 67 |yle erro|r messag|
|00005a70| 65 73 20 69 66 20 74 68 | 65 20 65 6e 76 69 72 6f |es if th|e enviro|
|00005a80| 6e 6d 65 6e 74 20 76 61 | 72 69 61 62 6c 65 0a 55 |nment va|riable.U|
|00005a90| 53 45 5f 53 43 48 45 4d | 41 54 49 4b 5f 53 54 59 |SE_SCHEM|ATIK_STY|
|00005aa0| 4c 45 5f 45 52 52 4f 52 | 53 20 69 73 20 64 65 66 |LE_ERROR|S is def|
|00005ab0| 69 6e 65 64 2e 20 20 54 | 68 69 73 20 69 73 20 61 |ined. T|his is a|
|00005ac0| 6e 20 65 78 74 65 6e 73 | 69 6f 6e 20 74 6f 20 74 |n extens|ion to t|
|00005ad0| 68 65 0a 65 6d 61 63 73 | 2d 73 74 79 6c 65 20 66 |he.emacs|-style f|
|00005ae0| 72 6f 6e 74 2d 65 6e 64 | 20 70 72 6f 74 6f 63 6f |ront-end| protoco|
|00005af0| 6c 20 77 68 65 72 65 62 | 79 20 65 72 72 6f 72 20 |l whereb|y error |
|00005b00| 6d 65 73 73 61 67 65 73 | 20 61 72 65 20 74 72 61 |messages| are tra|
|00005b10| 6e 73 6d 69 74 74 65 64 | 20 77 69 74 68 0a 77 69 |nsmitted| with.wi|
|00005b20| 74 68 20 61 6e 20 45 53 | 43 20 42 20 73 69 67 6e |th an ES|C B sign|
|00005b30| 61 6c 20 28 66 6f 6c 6c | 6f 77 65 64 20 62 79 20 |al (foll|owed by |
|00005b40| 74 68 65 20 6d 65 73 73 | 61 67 65 20 61 6e 64 20 |the mess|age and |
|00005b50| 61 20 74 65 72 6d 69 6e | 61 74 69 6e 67 20 45 53 |a termin|ating ES|
|00005b60| 43 29 2e 0a 54 68 65 6e | 20 73 63 68 65 6d 65 20 |C)..Then| scheme |
|00005b70| 64 6f 65 73 20 61 20 63 | 6c 65 61 6e 2d 69 6e 70 |does a c|lean-inp|
|00005b80| 75 74 2f 66 6c 75 73 68 | 2d 74 79 70 65 61 68 65 |ut/flush|-typeahe|
|00005b90| 61 64 20 74 6f 20 70 72 | 65 76 65 6e 74 20 63 61 |ad to pr|event ca|
|00005ba0| 73 63 61 64 69 6e 67 20 | 65 72 72 6f 72 73 0a 61 |scading |errors.a|
|00005bb0| 6e 64 20 74 6f 20 61 6c | 6c 6f 77 20 74 68 65 20 |nd to al|low the |
|00005bc0| 66 72 6f 6e 74 2d 65 6e | 64 20 74 68 65 20 6f 70 |front-en|d the op|
|00005bd0| 74 69 6f 6e 20 6f 66 20 | 61 62 6f 72 74 69 6e 67 |tion of |aborting|
|00005be0| 20 6f 75 74 20 6f 66 20 | 74 68 65 20 65 72 72 6f | out of |the erro|
|00005bf0| 72 20 77 69 74 68 0a 61 | 20 73 69 67 6e 61 6c 20 |r with.a| signal |
|00005c00| 62 65 66 6f 72 65 20 74 | 68 65 20 6c 6f 77 65 72 |before t|he lower|
|00005c10| 2d 6c 65 76 65 6c 20 52 | 45 50 4c 20 69 73 20 61 |-level R|EPL is a|
|00005c20| 63 74 75 61 6c 6c 79 20 | 65 6e 74 65 72 65 64 2e |ctually |entered.|
|00005c30| 0a 0a 54 68 69 73 20 63 | 6f 64 65 20 61 64 61 70 |..This c|ode adap|
|00005c40| 74 65 64 20 69 6e 20 70 | 61 72 74 20 66 72 6f 6d |ted in p|art from|
|00005c50| 20 65 6d 61 63 73 2e 73 | 63 6d 20 61 6e 64 20 65 | emacs.s|cm and e|
|00005c60| 72 72 6f 72 2e 73 63 6d | 2c 20 77 68 69 63 68 20 |rror.scm|, which |
|00005c70| 61 72 65 0a 0a 43 6f 70 | 79 72 69 67 68 74 20 28 |are..Cop|yright (|
|00005c80| 63 29 20 31 39 38 38 2c | 20 31 39 38 39 2c 20 31 |c) 1988,| 1989, 1|
|00005c90| 39 39 30 20 4d 61 73 73 | 61 63 68 75 73 65 74 74 |990 Mass|achusett|
|00005ca0| 73 20 49 6e 73 74 69 74 | 75 74 65 20 6f 66 20 54 |s Instit|ute of T|
|00005cb0| 65 63 68 6e 6f 6c 6f 67 | 79 0a 0a 54 68 69 73 20 |echnolog|y..This |
|00005cc0| 6d 61 74 65 72 69 61 6c | 20 77 61 73 20 64 65 76 |material| was dev|
|00005cd0| 65 6c 6f 70 65 64 20 62 | 79 20 74 68 65 20 53 63 |eloped b|y the Sc|
|00005ce0| 68 65 6d 65 20 70 72 6f | 6a 65 63 74 20 61 74 20 |heme pro|ject at |
|00005cf0| 74 68 65 20 4d 61 73 73 | 61 63 68 75 73 65 74 74 |the Mass|achusett|
|00005d00| 73 0a 49 6e 73 74 69 74 | 75 74 65 20 6f 66 20 54 |s.Instit|ute of T|
|00005d10| 65 63 68 6e 6f 6c 6f 67 | 79 2c 20 44 65 70 61 72 |echnolog|y, Depar|
|00005d20| 74 6d 65 6e 74 20 6f 66 | 20 45 6c 65 63 74 72 69 |tment of| Electri|
|00005d30| 63 61 6c 20 45 6e 67 69 | 6e 65 65 72 69 6e 67 20 |cal Engi|neering |
|00005d40| 61 6e 64 0a 43 6f 6d 70 | 75 74 65 72 20 53 63 69 |and.Comp|uter Sci|
|00005d50| 65 6e 63 65 2e 20 20 50 | 65 72 6d 69 73 73 69 6f |ence. P|ermissio|
|00005d60| 6e 20 74 6f 20 63 6f 70 | 79 20 74 68 69 73 20 73 |n to cop|y this s|
|00005d70| 6f 66 74 77 61 72 65 2c | 20 74 6f 20 72 65 64 69 |oftware,| to redi|
|00005d80| 73 74 72 69 62 75 74 65 | 0a 69 74 2c 20 61 6e 64 |stribute|.it, and|
|00005d90| 20 74 6f 20 75 73 65 20 | 69 74 20 66 6f 72 20 61 | to use |it for a|
|00005da0| 6e 79 20 70 75 72 70 6f | 73 65 20 69 73 20 67 72 |ny purpo|se is gr|
|00005db0| 61 6e 74 65 64 2c 20 73 | 75 62 6a 65 63 74 20 74 |anted, s|ubject t|
|00005dc0| 6f 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 0a |o the fo|llowing.|
|00005dd0| 72 65 73 74 72 69 63 74 | 69 6f 6e 73 20 61 6e 64 |restrict|ions and|
|00005de0| 20 75 6e 64 65 72 73 74 | 61 6e 64 69 6e 67 73 2e | underst|andings.|
|00005df0| 0a 0a 31 2e 20 41 6e 79 | 20 63 6f 70 79 20 6d 61 |..1. Any| copy ma|
|00005e00| 64 65 20 6f 66 20 74 68 | 69 73 20 73 6f 66 74 77 |de of th|is softw|
|00005e10| 61 72 65 20 6d 75 73 74 | 20 69 6e 63 6c 75 64 65 |are must| include|
|00005e20| 20 74 68 69 73 20 63 6f | 70 79 72 69 67 68 74 20 | this co|pyright |
|00005e30| 6e 6f 74 69 63 65 0a 69 | 6e 20 66 75 6c 6c 2e 0a |notice.i|n full..|
|00005e40| 0a 32 2e 20 55 73 65 72 | 73 20 6f 66 20 74 68 69 |.2. User|s of thi|
|00005e50| 73 20 73 6f 66 74 77 61 | 72 65 20 61 67 72 65 65 |s softwa|re agree|
|00005e60| 20 74 6f 20 6d 61 6b 65 | 20 74 68 65 69 72 20 62 | to make| their b|
|00005e70| 65 73 74 20 65 66 66 6f | 72 74 73 20 28 61 29 20 |est effo|rts (a) |
|00005e80| 74 6f 0a 72 65 74 75 72 | 6e 20 74 6f 20 74 68 65 |to.retur|n to the|
|00005e90| 20 4d 49 54 20 53 63 68 | 65 6d 65 20 70 72 6f 6a | MIT Sch|eme proj|
|00005ea0| 65 63 74 20 61 6e 79 20 | 69 6d 70 72 6f 76 65 6d |ect any |improvem|
|00005eb0| 65 6e 74 73 20 6f 72 20 | 65 78 74 65 6e 73 69 6f |ents or |extensio|
|00005ec0| 6e 73 20 74 68 61 74 0a | 74 68 65 79 20 6d 61 6b |ns that.|they mak|
|00005ed0| 65 2c 20 73 6f 20 74 68 | 61 74 20 74 68 65 73 65 |e, so th|at these|
|00005ee0| 20 6d 61 79 20 62 65 20 | 69 6e 63 6c 75 64 65 64 | may be |included|
|00005ef0| 20 69 6e 20 66 75 74 75 | 72 65 20 72 65 6c 65 61 | in futu|re relea|
|00005f00| 73 65 73 3b 20 61 6e 64 | 20 28 62 29 0a 74 6f 20 |ses; and| (b).to |
|00005f10| 69 6e 66 6f 72 6d 20 4d | 49 54 20 6f 66 20 6e 6f |inform M|IT of no|
|00005f20| 74 65 77 6f 72 74 68 79 | 20 75 73 65 73 20 6f 66 |teworthy| uses of|
|00005f30| 20 74 68 69 73 20 73 6f | 66 74 77 61 72 65 2e 0a | this so|ftware..|
|00005f40| 0a 33 2e 20 41 6c 6c 20 | 6d 61 74 65 72 69 61 6c |.3. All |material|
|00005f50| 73 20 64 65 76 65 6c 6f | 70 65 64 20 61 73 20 61 |s develo|ped as a|
|00005f60| 20 63 6f 6e 73 65 71 75 | 65 6e 63 65 20 6f 66 20 | consequ|ence of |
|00005f70| 74 68 65 20 75 73 65 20 | 6f 66 20 74 68 69 73 0a |the use |of this.|
|00005f80| 73 6f 66 74 77 61 72 65 | 20 73 68 61 6c 6c 20 64 |software| shall d|
|00005f90| 75 6c 79 20 61 63 6b 6e | 6f 77 6c 65 64 67 65 20 |uly ackn|owledge |
|00005fa0| 73 75 63 68 20 75 73 65 | 2c 20 69 6e 20 61 63 63 |such use|, in acc|
|00005fb0| 6f 72 64 61 6e 63 65 20 | 77 69 74 68 20 74 68 65 |ordance |with the|
|00005fc0| 20 75 73 75 61 6c 0a 73 | 74 61 6e 64 61 72 64 73 | usual.s|tandards|
|00005fd0| 20 6f 66 20 61 63 6b 6e | 6f 77 6c 65 64 67 69 6e | of ackn|owledgin|
|00005fe0| 67 20 63 72 65 64 69 74 | 20 69 6e 20 61 63 61 64 |g credit| in acad|
|00005ff0| 65 6d 69 63 20 72 65 73 | 65 61 72 63 68 2e 0a 0a |emic res|earch...|
|00006000| 34 2e 20 4d 49 54 20 68 | 61 73 20 6d 61 64 65 20 |4. MIT h|as made |
|00006010| 6e 6f 20 77 61 72 72 61 | 6e 74 65 65 20 6f 72 20 |no warra|ntee or |
|00006020| 72 65 70 72 65 73 65 6e | 74 61 74 69 6f 6e 20 74 |represen|tation t|
|00006030| 68 61 74 20 74 68 65 20 | 6f 70 65 72 61 74 69 6f |hat the |operatio|
|00006040| 6e 20 6f 66 0a 74 68 69 | 73 20 73 6f 66 74 77 61 |n of.thi|s softwa|
|00006050| 72 65 20 77 69 6c 6c 20 | 62 65 20 65 72 72 6f 72 |re will |be error|
|00006060| 2d 66 72 65 65 2c 20 61 | 6e 64 20 4d 49 54 20 69 |-free, a|nd MIT i|
|00006070| 73 20 75 6e 64 65 72 20 | 6e 6f 20 6f 62 6c 69 67 |s under |no oblig|
|00006080| 61 74 69 6f 6e 20 74 6f | 0a 70 72 6f 76 69 64 65 |ation to|.provide|
|00006090| 20 61 6e 79 20 73 65 72 | 76 69 63 65 73 2c 20 62 | any ser|vices, b|
|000060a0| 79 20 77 61 79 20 6f 66 | 20 6d 61 69 6e 74 65 6e |y way of| mainten|
|000060b0| 61 6e 63 65 2c 20 75 70 | 64 61 74 65 2c 20 6f 72 |ance, up|date, or|
|000060c0| 20 6f 74 68 65 72 77 69 | 73 65 2e 0a 0a 35 2e 20 | otherwi|se...5. |
|000060d0| 49 6e 20 63 6f 6e 6a 75 | 6e 63 74 69 6f 6e 20 77 |In conju|nction w|
|000060e0| 69 74 68 20 70 72 6f 64 | 75 63 74 73 20 61 72 69 |ith prod|ucts ari|
|000060f0| 73 69 6e 67 20 66 72 6f | 6d 20 74 68 65 20 75 73 |sing fro|m the us|
|00006100| 65 20 6f 66 20 74 68 69 | 73 20 6d 61 74 65 72 69 |e of thi|s materi|
|00006110| 61 6c 2c 0a 74 68 65 72 | 65 20 73 68 61 6c 6c 20 |al,.ther|e shall |
|00006120| 62 65 20 6e 6f 20 75 73 | 65 20 6f 66 20 74 68 65 |be no us|e of the|
|00006130| 20 6e 61 6d 65 20 6f 66 | 20 74 68 65 20 4d 61 73 | name of| the Mas|
|00006140| 73 61 63 68 75 73 65 74 | 74 73 20 49 6e 73 74 69 |sachuset|ts Insti|
|00006150| 74 75 74 65 20 6f 66 0a | 54 65 63 68 6e 6f 6c 6f |tute of.|Technolo|
|00006160| 67 79 20 6e 6f 72 20 6f | 66 20 61 6e 79 20 61 64 |gy nor o|f any ad|
|00006170| 61 70 74 61 74 69 6f 6e | 20 74 68 65 72 65 6f 66 |aptation| thereof|
|00006180| 20 69 6e 20 61 6e 79 20 | 61 64 76 65 72 74 69 73 | in any |advertis|
|00006190| 69 6e 67 2c 0a 70 72 6f | 6d 6f 74 69 6f 6e 61 6c |ing,.pro|motional|
|000061a0| 2c 20 6f 72 20 73 61 6c | 65 73 20 6c 69 74 65 72 |, or sal|es liter|
|000061b0| 61 74 75 72 65 20 77 69 | 74 68 6f 75 74 20 70 72 |ature wi|thout pr|
|000061c0| 69 6f 72 20 77 72 69 74 | 74 65 6e 20 63 6f 6e 73 |ior writ|ten cons|
|000061d0| 65 6e 74 20 66 72 6f 6d | 0a 4d 49 54 20 69 6e 20 |ent from|.MIT in |
|000061e0| 65 61 63 68 20 63 61 73 | 65 2e 20 7c 23 0a 0a 3b |each cas|e. |#..;|
|000061f0| 3b 3b 3b 20 53 63 68 65 | 6d 61 74 69 6b 2d 73 74 |;;; Sche|matik-st|
|00006200| 79 6c 65 20 65 72 72 6f | 72 20 68 61 6e 64 6c 65 |yle erro|r handle|
|00006210| 72 0a 3b 3b 3b 20 70 61 | 63 6b 61 67 65 3a 20 28 |r.;;; pa|ckage: (|
|00006220| 72 75 6e 74 69 6d 65 20 | 73 63 68 65 6d 61 74 69 |runtime |schemati|
|00006230| 6b 2d 73 74 79 6c 65 2d | 65 72 72 6f 72 73 29 0a |k-style-|errors).|
|00006240| 0a 28 64 65 63 6c 61 72 | 65 20 28 75 73 75 61 6c |.(declar|e (usual|
|00006250| 2d 69 6e 74 65 67 72 61 | 74 69 6f 6e 73 29 29 0a |-integra|tions)).|
|00006260| 0c 0a 28 64 65 66 69 6e | 65 20 28 73 63 68 65 6d |..(defin|e (schem|
|00006270| 61 74 69 6b 2d 73 74 79 | 6c 65 2f 65 72 72 6f 72 |atik-sty|le/error|
|00006280| 2d 68 61 6e 64 6c 65 72 | 20 63 6f 6e 64 69 74 69 |-handler| conditi|
|00006290| 6f 6e 29 0a 20 20 28 74 | 72 61 6e 73 6d 69 74 2d |on). (t|ransmit-|
|000062a0| 73 69 67 6e 61 6c 2d 77 | 69 74 68 2d 61 72 67 75 |signal-w|ith-argu|
|000062b0| 6d 65 6e 74 0a 20 20 20 | 23 5c 42 0a 20 20 20 28 |ment. |#\B. (|
|000062c0| 63 6f 6e 64 69 74 69 6f | 6e 2f 72 65 70 6f 72 74 |conditio|n/report|
|000062d0| 2d 73 74 72 69 6e 67 20 | 63 6f 6e 64 69 74 69 6f |-string |conditio|
|000062e0| 6e 29 29 0a 20 20 28 68 | 6f 6f 6b 2f 63 6c 65 61 |n)). (h|ook/clea|
|000062f0| 6e 2d 69 6e 70 75 74 2f | 66 6c 75 73 68 2d 74 79 |n-input/|flush-ty|
|00006300| 70 65 61 68 65 61 64 20 | 75 6e 73 70 65 63 69 66 |peahead |unspecif|
|00006310| 69 63 29 0a 20 20 28 70 | 75 73 68 2d 72 65 70 6c |ic). (p|ush-repl|
|00006320| 20 28 63 6f 6e 64 69 74 | 69 6f 6e 2f 65 6e 76 69 | (condit|ion/envi|
|00006330| 72 6f 6e 6d 65 6e 74 20 | 63 6f 6e 64 69 74 69 6f |ronment |conditio|
|00006340| 6e 29 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |n). | |
|00006350| 28 6c 65 74 20 28 28 6d | 65 73 73 61 67 65 0a 20 |(let ((m|essage. |
|00006360| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006370| 20 20 20 28 63 6d 64 6c | 2d 6d 65 73 73 61 67 65 | (cmdl|-message|
|00006380| 2f 6e 75 6c 6c 29 29 29 | 0a 20 20 20 20 20 20 20 |/null)))|. |
|00006390| 20 20 20 20 20 20 20 20 | 28 69 66 20 28 63 6f 6e | |(if (con|
|000063a0| 64 69 74 69 6f 6e 2f 73 | 75 62 73 74 69 74 75 74 |dition/s|ubstitut|
|000063b0| 65 2d 65 6e 76 69 72 6f | 6e 6d 65 6e 74 3f 20 63 |e-enviro|nment? c|
|000063c0| 6f 6e 64 69 74 69 6f 6e | 29 0a 20 20 20 20 20 20 |ondition|). |
|000063d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 28 63 6d | | (cm|
|000063e0| 64 6c 2d 6d 65 73 73 61 | 67 65 2f 61 70 70 65 6e |dl-messa|ge/appen|
|000063f0| 64 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |d. | |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.